#include <iostream>
using namespace std;
void SumNumbers(int N) {
int _sum = 0;
for (int i = 1; i <= N; i++)
{
_sum += i;
}
cout << _sum;
signed main() {
setlocale(LC_ALL, "Rus");
int N;
cin >> N;
SumNumbers(N);
return 0;
#include <iostream>
using namespace std;
void SumNumbers(int N) {
int _sum = 0;
for (int i = 1; i <= N; i++)
{
_sum += i;
}
cout << _sum;
}
signed main() {
setlocale(LC_ALL, "Rus");
int N;
cin >> N;
SumNumbers(N);
return 0;
}