11 lines
149 B
C++
11 lines
149 B
C++
|
|
#include <bits/stdc++.h>
|
||
|
|
|
||
|
|
using namespace std;
|
||
|
|
|
||
|
|
int main() {
|
||
|
|
int n;
|
||
|
|
cin >> n;
|
||
|
|
cout << (1 + n) * n / 2 << endl;
|
||
|
|
return 0;
|
||
|
|
}
|