Write a function named countNum2s that takes as input an array of integers and an integer that specifies how many entries are in the array. The function should return the number of 2’s in the array. Test your function with arrays of different length and with varying number of 2′s.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.