Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
159 B
2
Indexable
#include <iostream>
using namespace std;

int main()
{
	int a;
	cin >> a;
	int b = 0;
	for (int i = 1; i <= a; i += 1) {
		b += i;
	}
	cout << b;
}