Untitled

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