fork download
  1. #include <stdio.h>
  2.  
  3. int main () {
  4.  
  5. int three = 0;
  6. int five = -2;
  7.  
  8. for(int i = 3; i < 100; i+=2) {
  9.  
  10. printf("%d", i);
  11.  
  12. three++;
  13. five++;
  14.  
  15. if(three == 1 && i != 3) {
  16.  
  17. i+=2;
  18.  
  19. three = 0;
  20. }
  21.  
  22. else if(five == 5) {
  23.  
  24. five = 0;
  25.  
  26. i+=2;
  27. }
  28. }
  29.  
  30. return 0;
  31. }
Success #stdin #stdout 0.01s 1720KB
stdin
Standard input is empty
stdout
35791113151921232527313335373943454749515557596163676971737579818385879193959799