Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
261 B
0
Indexable
Never
#include <iostream>
using namespace std;

int main() {
	setlocale(LC_ALL, "Russian");
	int mas[10000], n, a = 1;
	cin >> n;
	for (int i = 0; i < n; i++) {
		mas[i] = a * a;
		a += 1;
	}
	for (int i = 0; i < n; i++) {
		cout << mas[i] << endl;
	}
}
Leave a Comment