0

To display Only the elements which are divisible by 100 in 3×3 matrix

write a program in c++

31st Mar 2017, 9:09 AM
vishal kalbande
vishal kalbande - avatar
1 Answer
+ 8
#define N 3 int matrix[N][N]; for(int i=0;i<N;i++) { for(int j=0;j<N;j++) { if((matrix[i][j]%100)==0) cout<<matrix[i][j]; } }
31st Mar 2017, 9:49 AM
Karl T.
Karl T. - avatar