Run ID:106298

提交时间:2025-01-15 22:00:09

#include <iostream> using namespace std; int main() { int a[101]; for (int i = 1; i <= 100; i++) { a[i] = i; } for (int i = 1; i <= 100; i++) { if (i % 10 == 0) cout << a[i] << endl; else cout << a[i] << " "; } return 0; }