#include<iostream>
using namespace std;
int main()
{
int AT[2][3]={{1,2,3,},{4,5,6}},A[3][2],i,j;
for(i=0;i<2;i++)
for(j=0;j<3;j++)
A[j][i]=AT[i][j];
for(i=0;i<3;i++)
{
for(j=0;j<2;j++)
cout<<A[i][j];
cout<<endl;
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: