arrayFrequencyMatrix


Submit solution

Points: 10 (partial)
Time limit: 1.5s
Memory limit: 64M

Authors:
Problem type
Allowed languages
C

Write C code to search for an element in a 2D array and print its frequency.When an element value greater than ten is present in the matrix then the program should display the message "Error in input element” and terminate.

Sample Input

3

3

1

2

3

1

2

3

1

2

3

sample output

the frequency of element 1 is 3

the frequency of element 2 is 3

the frequency of element 3 is 3


Sample Input

3

3

1

20

3

1

2

3

1

2

3

Sample Output

Error in input element


Comments

There are no comments at the moment.