fork download
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int x;
  6.  
  7. for(x = 0; x < 20; x++) {
  8.  
  9. if(x % 3 == 0 && x % 5 == 0) {
  10. printf("%d#\n", x);
  11. }
  12. else if(x % 3 == 0) {
  13. printf("%d?\n", x);
  14. }
  15. else if(x % 5 == 0) {
  16. printf("%d!\n", x);
  17. }
  18. else {
  19. printf("%d\n", x);
  20. }
  21.  
  22. }
  23.  
  24. return 0;
  25. }
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
0#
1
2
3?
4
5!
6?
7
8
9?
10!
11
12?
13
14
15#
16
17
18?
19