Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <time.h>
  4.  
  5. using namespace std;
  6.  
  7. int main()
  8.  
  9. {
  10. int tab [10][2];
  11. srand((unsigned)time(NULL));
  12. for (int i=0; i<10; i++)
  13. {
  14. for (int j=0; j<2; j++)
  15. {
  16. tab [i][j]=rand()%2;
  17. cout<<" "<<tab[i][j];
  18. }
  19.  
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement