<-- this was for my summer class lol wants to test if you were paying attention when he explained counting the number of times an integer appeared in an array. Now, he wants you to demonstrate it in a 2-D array.
CAN YOU CODE
by array. For each index in the 2-D array, you are to determine, for each number to , how many times each number appears.
will give you anInput Specification
The first line of input will contain an integer .
The next lines of input will each contain integers, .
Output Specification
For each line of output where , you are to output how many times the number appears in the array.
Sample Input
3
1 1 2
3 2 1
2 2 1
Sample Output
4
4
1
Comments