Write a program which takes number from 1 to 20 as input.50 numbers are taken as input .you need to output the number that appear the most number of time .assume unique answer to about problem.
Answers
Answered by
4
Answer:
(This answer is written while assuming you want to use Python)
Make a list of the numbers and loop over it, using 2 variables in the list and storing the data in a dictionary once the loop finishes.
when it is done, you will have a dictionary, which will have the number and the number of times it was repeated.
then, you can use basic number comparison to find out the number which is repeated the most
Message me if you want the full code
( i don't want to spend like 45 minutes making it)
Similar questions
Social Sciences,
5 months ago
Social Sciences,
5 months ago
English,
5 months ago
English,
10 months ago
English,
10 months ago
History,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago