Given array of integers and we have to find occurrence of a give number.
For example we have list of integers: 10 23 10 24 10
Here we will take a counter initialized with 0. Then take input from console. And check given number to each number of list if item matched. Then we will increase the counter.
Consider the example:
Output