#include <iostream>
using namespace std;

int main() {
   int arr[2][3];
    
    for (int i=0;i<2 ;i++ ) {
        for (int j=0;j<3 ;j++ ) {
            cin>>arr[i][j];
        }
    }
     for (int j=0;j<3 ;j++ ) {
        for (int i=0;i<2 ;i++ ) {
            cout<<arr[i][j]<<"  ";
        }
         cout<<endl;
    }
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: