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