Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3.  
  4. using namespace std;
  5.  
  6. #define RADKU   6
  7. #define SLOUPCU 6
  8.  
  9. int matice[RADKU][SLOUPCU];
  10.  
  11. int main()
  12. {
  13.     for(int radek = 0; radek < RADKU; ++radek)
  14.     {
  15.         for(int sloupec = 0; sloupec < SLOUPCU; ++sloupec)
  16.         {
  17.             matice[radek][sloupec] = (radek)%2 ? 1 : 0;
  18.             cout << matice[radek][sloupec];
  19.         }
  20.         cout << std::endl;
  21.     }
  22.  
  23.     std::cin.get();
  24.     return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement