Be the first to like this
Write a Java application program called Largest.java that inputs a series of 10 single-digit numbers and determines and prints the largest of the numbers. Except main() method, no other user-defined method is required. Your program should use at least the following three variables
counter: A counter to count to 10 (that is, to keep track of how many numbers have been input and to determine when all 10 numbers have been processed);
number: The current digit input to the program; and
largest: The largest number found so far.
When each number is entered, make sure it is a single digit number, that is 0 to 9.