#include<stdio.h> main(){ int n,s; while(scanf("%d",&n)!=EOF){ s=(1+n)*n/2; printf("%d",s); } }
Double click to view unformatted code.