Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
205 B
1
Indexable
Never
#include <iostream>
using namespace std;
int main()
{
	int n;
	cin >> n;
	int mas[10000];
	for (int i = 0; i < n; i++)
	{
		mas[i] = (i + 1) * (i + 1);
		cout << mas[i] << " ";
	}
	return 0;
}
Leave a Comment