#include<stdio.h>int main(){int i,sum;i=1;sum=0;while(i<=100){sum=sum+i;i++;}printf("sum=%d",sum); }
Standard input is empty
sum=5050
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!