Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
179 B
0
Indexable
Never
#include <iostream>
#include <algorithm>


int main()
{
    int n{};
    std::cin >> n;
    for (int i = 1; i < n + 1; i++) {
        std::cout << i * i << " ";
    }
}
Leave a Comment