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