Advertisement
Guest User

Wypełnianie

a guest
Nov 21st, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <time.h>
  3. #include <cstdlib>
  4. #include <windows.h>
  5.  
  6. using namespace std;
  7.  
  8. int main()
  9. {
  10. srand(time(NULL));
  11. int t[10][10], x=0, y=0, i=0, j=0;
  12.  
  13. int losowanko = rand()%100+1;
  14.  
  15.  
  16. for(x=0;x<10;x++)
  17. {
  18. for(y=0;y<10;y++)
  19. {
  20. if(y==0)
  21. {
  22. t[x][y]=1;
  23. }
  24. else t[x][y]=0;
  25. }
  26. cout<<endl;
  27. }
  28.  
  29. for(i=0;i<10;i++)
  30. {
  31. for(j=0;j<10;j++)
  32. {
  33. cout<<t[i][j]<<" ";
  34. }
  35. cout<<endl;
  36. }
  37.  
  38.  
  39.  
  40.  
  41. return 0;
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement