Сделал на С++
Объяснение:
Код программы:
#include <iostream>//для ввода - вывода
#include <windows.h>//для русской раскладки
using namespace std;
int main()
{
SetConsoleCP(1251);//подключаем русскую раскладку
SetConsoleOutputCP(1251);
int N;
cout << "Введите N: ";
cin >> N;
for (int x = 1; (x * x) < N; x++)
{
cout << x*x << " ";
}
return 0;
}