Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
164 B
2
Indexable
Never

#include <iostream>
using namespace std;
int main()
{
	int r;
	int f=0;
	cin >> r;
	for (int i = 0; i <= r; i++) {
		f += i;
		cout << f << " ";
	}
}