admin@onlinelearningcenter.in (+91) 7 999 01 02 03

WAP to accept 10 numbers in am array called R[ ] calculate the frequency of an input number present in the same list( use scanner class to accept values)

Sunita Chhetry
110 Posts

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
Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

Comments

Jquery Comments Plugin