Untitled

Anonymous
plain_text
10/15/2023 8:57 AM
284 B
15
Indexable
// задача на циклы
#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;
}
Editor is loading...