#include<stdio.h>
int main()
{
int n,m;
int array[n][m];
for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
scanf("%d", &array
[i
][j
]); }
}
int value, count = 0;
printf("Enter value of count: "); for(int i=0; i<n; i++){
for(int j=0; j<m; j++){
if(array[i][j] == value){
count++;
}
}
}
}
I2luY2x1ZGU8c3RkaW8uaD4KaW50IG1haW4oKQp7CiAgICBpbnQgbixtOwogICAgc2NhbmYoIiVkICVkIiwgJm4sICZtKTsKICAgIGludCBhcnJheVtuXVttXTsKCiAgICBmb3IoaW50IGk9MDsgaTxuOyBpKyspewogICAgICAgIGZvcihpbnQgaj0wOyBqPG07IGorKyl7CiAgICAgICAgICAgIHNjYW5mKCIlZCIsICZhcnJheVtpXVtqXSk7CiAgICAgICAgfQogICAgfQogICAgaW50IHZhbHVlLCBjb3VudCA9IDA7CiAgICBwcmludGYoIkVudGVyIHZhbHVlIG9mIGNvdW50OiAiKTsKICAgIHNjYW5mKCIlZCIsICZ2YWx1ZSk7CiAgICBmb3IoaW50IGk9MDsgaTxuOyBpKyspewogICAgICAgIGZvcihpbnQgaj0wOyBqPG07IGorKyl7CiAgICAgICAgICAgIGlmKGFycmF5W2ldW2pdID09IHZhbHVlKXsKICAgICAgICAgICAgICAgIGNvdW50Kys7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICB9CiAgICBwcmludGYoIkNvdW50OiAlZFxuIiwgY291bnQpOwp9Cgo=