// For10.cc #include using namespace std; int main() { int N = 100 ; int period = 10 ; for (int i=1; i<=N; i++) { cout << i << " " ; if ( !(i%period) ) cout << endl; } }