Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
166 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;
int main() {
	int a, b = 0;
	cin >> a;
	for (int i = 1; i < a+1; i++){
		b += i;
	}
	cout << b;
}