fork download
  1. #include<stdio.h>
  2. int main(){
  3. int i;
  4. for(i=1;i<=100;i++){
  5. if(i%5==0)
  6. printf("&&&\n",i);
  7. else if(i%3==0 && i%4==0)
  8. printf("*%d!\n",i);
  9.  
  10. else if(i%3==0)
  11. printf("*%d\n",i);
  12. else if(i%4==0)
  13. printf("%d!\n",i);
  14. else
  15. printf("%d\n",i);
  16. }
  17. return 0;
  18. }
Success #stdin #stdout 0.01s 5280KB
stdin
Standard input is empty
stdout
1
2
*3
4!
&&&
*6
7
8!
*9
&&&
11
*12!
13
14
&&&
16!
17
*18
19
&&&
*21
22
23
*24!
&&&
26
*27
28!
29
&&&
31
32!
*33
34
&&&
*36!
37
38
*39
&&&
41
*42
43
44!
&&&
46
47
*48!
49
&&&
*51
52!
53
*54
&&&
56!
*57
58
59
&&&
61
62
*63
64!
&&&
*66
67
68!
*69
&&&
71
*72!
73
74
&&&
76!
77
*78
79
&&&
*81
82
83
*84!
&&&
86
*87
88!
89
&&&
91
92!
*93
94
&&&
*96!
97
98
*99
&&&