#include "stdafx.h" #include using namespace std; int main() { double A[2][5] = { { 1,2,3,4,5 } ,{ 10,20,30,40,50 } }; int i, j; // print of A for (i = 0; i < 2; i++) { for (j = 0; j < 5; j++) cout << A[i][j] << "\t"; cout << endl; } cout << "\n and the transpose is:\n"; // print transpose of A for (j = 0; j < 5; j++) { for (i = 0; i < 2; i++) cout << A[i][j] << "\t"; cout << endl; } return 0; }