fork download
  1. #include<stdio.h>
  2. int main()
  3. {
  4. int i,sum;
  5. i=1;
  6. sum=0;
  7. while(i<=100){
  8. sum=sum+i;
  9. i++;}
  10. printf("sum=%d",sum);
  11.  
  12.  
  13. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
sum=5050