Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Array.cpp : This file contains the 'main' function. Program execution begins and ends there.
- // Bài 2 || Huỳnh Thế Anh
- #include <iostream>
- using namespace std;
- int main()
- {
- int arr[3][3];
- for (int i = 0; i < 3; i++)
- {
- for (int j = 0; j < 3; j++)
- {
- cin >> arr[i][j];
- }
- }
- for (int j = 0; j < 3; j++)
- {
- for (int i = 2; i >= 0; i--)
- {
- cout << arr[i][j] << "\t" ;
- }
- cout << endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement