0

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

write a program in c++

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];
}
}