C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <stdio.h>
int main() {
int testcase;
int num;
scanf("%d", &testcase); getchar();
for(int i = 1; i <= testcase; i++) {
scanf("%d", &num); getchar();
}
for(int x = 1; x <= testcase ; x++) {
printf("Case #%d: ", x);
for(int y = 1; y <= num; y++) {
printf("%d", y);
if(y%3 == 0 || y%5 == 0) {
printf("Me");
}else printf("You");
if(y%3 == 0 && y%5 == 0) {
printf("You");
}
print("\n");
}
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run