Untitled
unknown
c_cpp
2 years ago
179 B
6
Indexable
#include <iostream>
#include <algorithm>
int main()
{
int n{};
std::cin >> n;
for (int i = 1; i < n + 1; i++) {
std::cout << i * i << " ";
}
}Editor is loading...
Leave a Comment