Untitled

sd
Anonymous
c_cpp
10/15/2023 7:54 AM
244 B
14
Indexable
#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;

}
Editor is loading...