// For64.cc #include using namespace std; int main() { int N = 100 ; int period = 10 ; int r=0 ; for (int i=1; i<=N; i++) { if ((i+r)%2) cout << "X" ; else cout << " " ; if ( !(i%period) ) r++, cout << endl; } }