백준
[8393] 합
Jcoder
2018. 5. 14. 22:00
#include <stdio.h>int main(){int i, n, sum=0;scanf("%d", &n);for(i=n; i>0; i--){sum += i;}printf("%d", sum);}