Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
213 B
1
Indexable
Never
// задача на циклы
#include <iostream>
using namespace std;
int main()
{
	int a;
	cin >> a;
	int f = 0;

	for (int i = 0; i <= a; i++)
	{
		f += i;
		cout << f << "   ";
	}
	return 0;
}