Guest User

Untitled

a guest
May 9th, 2012
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. int i,j;
  4. int arr[6][6];
  5. int main()  
  6. {
  7. using namespace std;
  8. cout << "Enter array" << endl;
  9. for(i=0;i<=6;i++)
  10. for(j=0;j<=6;j++)
  11. cin >> arr[i][j];
  12.  
  13.  
  14. cout << endl << endl << endl;
  15. for(i=0;i<=6;i++){
  16. for(j=0;j<=6;j++){
  17. cout << arr[i][j] << " ";
  18. }
  19. cout << endl;
  20. }
  21.  
  22. }
  23.  
  24.  
  25. ввожу
  26.  
  27. 0 1 1 0 0 0 1
  28. 1 0 0 0 0 0 0
  29. 1 0 0 0 1 0 0
  30. 0 0 0 0 1 1 0
  31. 0 0 1 1 0 1 1
  32. 0 0 0 1 1 0 0
  33. 1 0 0 0 1 0 0
  34.  
  35. выходит
  36.  
  37. 0 1 1 0 0 0 1
  38. 1 0 0 0 0 0 1
  39. 1 0 0 0 1 0 0
  40. 0 0 0 0 1 1 0
  41. 0 0 1 1 0 1 0
  42. 0 0 0 1 1 0 1
  43. 1 0 0 0 1 0 0
  44.  
  45. КАКИМ ОБРАЗОМ?!
Advertisement
Add Comment
Please, Sign In to add comment