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

IIntroductory22.cpp displays the contents of a //two-dimensional array, column by column and row by row //created/ revised by Kyour name on kourrent date findude

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

 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 IIntroductory22.cpp displays the cont

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site