Sum Problem
Sample code :
#include <stdio.h> int main() { int i,n; int sum; while(scanf("%d",&n)!=EOF) { sum=0; for(i=0;i<=n;i++) sum+=i; printf("%d ",sum); } return 0; }