Skip to content

Instantly share code, notes, and snippets.

@hadronized
Created May 9, 2011 20:36
Show Gist options
  • Save hadronized/963336 to your computer and use it in GitHub Desktop.
Save hadronized/963336 to your computer and use it in GitHub Desktop.
bool col;
for (int r = 0; r < 10; ++r) {
for (int c = 0; c < 10; ++c) {
col = (r+c)%2;
std::cout << col << ' ';
}
std::cout << std::endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment