Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- using namespace std;
- #define RADKU 6
- #define SLOUPCU 6
- int matice[RADKU][SLOUPCU];
- int main()
- {
- for(int radek = 0; radek < RADKU; ++radek)
- {
- for(int sloupec = 0; sloupec < SLOUPCU; ++sloupec)
- {
- matice[radek][sloupec] = (radek)%2 ? 1 : 0;
- cout << matice[radek][sloupec];
- }
- cout << std::endl;
- }
- std::cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement