How do I count the occurrences of numbers in a 2D array?
I would like to count the occurrences of the numbers 1-9 in in a 2D array. EX: 8 occurs 3 times, 2 occurs 2 times, etc. Some thing like "int num [4][2] = {{3,2};{2,9},{8,8},{6,8}};" or any 2D array. How can I count how times the numbers 1-9 occur in the array?
Loop through it. Use a [...]