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