#includevoid main(){ int s=0,n,m=1; while(scanf("%ld",&n)!=EOF) { s=0;//初始化 m=1; do{ s+=m; m++; }while(m<=n); printf("%ld\n\n",s); }}