Advertisement
HuynhTheAnh

Bài 2

Feb 21st, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. // Array.cpp : This file contains the 'main' function. Program execution begins and ends there.
  2. // Bài 2 || Huỳnh Thế Anh
  3.  
  4. #include <iostream>
  5. using namespace std;
  6.  
  7. int main()
  8. {
  9. int arr[3][3];
  10. for (int i = 0; i < 3; i++)
  11. {
  12. for (int j = 0; j < 3; j++)
  13. {
  14. cin >> arr[i][j];
  15. }
  16. }
  17. for (int j = 0; j < 3; j++)
  18. {
  19. for (int i = 2; i >= 0; i--)
  20. {
  21. cout << arr[i][j] << "\t" ;
  22. }
  23. cout << endl;
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement