7 lines
93 B
C
7 lines
93 B
C
#include <stdio.h>
|
|
int main(){
|
|
int n;
|
|
scanf("%d",&n);
|
|
printf("%d",n*(n+1)/2);
|
|
return 0;
|
|
} |