Question: Write a program that takes 10 numbers, put them in an array, and have a prompt that asks the user to enter in any 10
Write a program that takes 10 numbers, put them in an array, and have a prompt that asks the user to enter in any 10 indexs (meaning the number that corresponds to what the user enters) and have it output how many times that number comes up.
Extra credit: only allow the user to enter positive numbers
example:
Enter number 1: 4
Enter number 2: 7
Enter number 3: 7
Enter number 4: 7
...
Enter A Number: 3
The number 7 occurs 3 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
