fork download
  1. #include <stdio.h>
  2.  
  3. int main(){
  4. int num1 = 1;
  5. do{
  6. printf("\n%d" , num1);
  7. num1 = num1 + 1;
  8. }
  9. while(num1 <= 10);
  10.  
  11.  
  12. return 0;
  13. }
  14.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
1
2
3
4
5
6
7
8
9
10