Untitled

sd
mail@pastecode.io avatar
unknown
c_cpp
7 months ago
183 B
0
Indexable
Never
#include <iostream>
using namespace std;


int main()
{
	int a;
	int v = 0;

	cin >> a;

	for (int i = 1; i <= a; i += 1) {
		v += i;

	}
	cout << v;

	return 0;

}