Question #17740

WAP having function named lower half which takes a 2-D array ‘A’ with size n rows and n columns as argument and print the lower half of the array.

Expert's answer


void lower(int** mass, int rows, int colms)
{
for(int i=(rows>>1);i<rows;++i)
for(int j=0;j<colms;++j)
cout<<mass[i][j];
}
LATEST TUTORIALS
APPROVED BY CLIENTS