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