write a program that accepts 10 integers and determines and prints the smallest and largest integer input by the user. Your program should use at least the following four variables:
-
counter - A counter to keep track of how many numbers have been entered.
-
number - The integer most recently input by the user.
-
largest - The largest number found so far.
-
smallest - The smallest number found so far.
Use the Scanner class for both programs to accept input from the user