Im not sure whats wrong with my code but its does not give any output it only takes input and after that my terminal ends the program im using ubunto linux .
here is my code
#include <iostream>
using namespace std;
int main()
{
int A[3][3];
int B[3][3];
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
cout << "" << i << j << ": ";
cin >> A[i][j];
}
}
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
B[j][i] = A[i][j];
}
cout << endl;
}
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
cout << B[i][j];
}
cout << endl;
}
return 0;
}