Rohyoohyun / C

0 stars 0 forks source link

8393 합 #7

Open Rohyoohyun opened 4 months ago

Rohyoohyun commented 4 months ago

include

int main(){ int n, sum=0; scanf("%d", &n); for(int i=1 ;i<=n; i++){ sum += i; } printf("%d", sum); return 0; }