fork download
  1. #include <stdio.h>
  2.  
  3. int main ()
  4. {
  5. int i,j;
  6. int num;
  7. //printf("Enter the no");
  8. scanf("%d",&num);
  9. for(i=0;i<10;i++)
  10. {
  11. if(num>5)
  12. {
  13. num = num +2;
  14. printf("%d\n",num);
  15. }
  16. else
  17. {
  18. goto LOOP;
  19. }
  20. }
  21. LOOP:for(i=0;i<10;i++)
  22. {
  23. num=num+3;
  24. printf("%d\n",num);
  25. }
  26. return 0;
  27. }
  28.  
Success #stdin #stdout 0s 2252KB
stdin
4
stdout
7
10
13
16
19
22
25
28
31
34