Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
168 B
3
Indexable
Never
#include <iostream>

int main() {
	unsigned int n;
	std::cin >> n;
	
	for (int i = 1, s = 0; s <= n; s = i * i++) {
		std::cout << s << ' ';
	}

	return 0;
}