this is the file I have to use for this problem but I dont k
this is the file I have to use for this problem but I don\'t know what to do.
this is the problem I don\'t know how to do
Solution
#include<iostream>
using namespace std;
int main()
{
int nums[2][4]={{17,24,86,35},{23,36,10,12}};
// display column by column
int m=0;
while(m<4)
{
for(int n=0;n<2;n++)
{
cout<<\"\ nums[\"<<n<<\"][\"<<m<<\"] : \"<<nums[n][m];
}
m++;
}
cout<<endl;
//display row by row
int i=0;
while(i<2)
{
for(int j=0;j<4;j++)
{
cout<<\"\ nums[\"<<i<<\"][\"<<j<<\"] : \"<<nums[i][j];
}
i++;
}
return 0;
} //end ofain function
