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