WAP to accept 10 numbers in an array called R [] calculate the frequency of an input number present in the same list(use scanner class to accept values)
Input: 7, 2, 1, 50, 20, 7, 50, 1, 1 , 2
Output:
7 2
2 2
1 3
50 2
20 1
Published By : Sunita Chhetry