Files
python/TangDou/LanQiaoBei/LanQiaoBeiWhitePaper/15_PingFangShu.cpp

13 lines
214 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
printf("%d", i * i);
if (i < n)printf(",");
}
return 0;
}