fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4.  
  5. int a,b,c;
  6.  
  7. for(a=1; a<=100; a++){
  8.  
  9. if(a%5==0){printf("&&&\n",a);}
  10. else if(a%12==0){printf("*%d!\n",a);}
  11. else if(a%4==0){printf("%d!\n",a);}
  12. else if(a%3==0){printf("*%d\n",a);}
  13. else printf("%d\n",a);}
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25. return 0;
  26. }
  27.  
Success #stdin #stdout 0s 5288KB
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
&&&