Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- bool casella, scacchiera[8][8];
- int i=0,j;
- while (i<8)
- {
- if (i%2) casella=true;
- else casella=false;
- j=0;
- while (j<8)
- {
- scacchiera[i][j]=casella;
- cout << scacchiera[i][j];
- casella=!casella;
- j++;
- }
- cout << "\n";
- i++;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement