Counter a counter to count to 10 ie to keep track of how


Design a Java program that asks the user to input a series of 10 integers, and then determines and prints the largest integer the user entered. Your program should use at least the following three variables:

a) counter: A counter to count to 10 (i.e, to keep track of how many numbers have been input and to determine when all 10 numbers have been processed).

b) number: The integer most recently input by the user.

c) largest: The largest number found so far.

Solution Preview :

Prepared by a verified Expert
JAVA Programming: Counter a counter to count to 10 ie to keep track of how
Reference No:- TGS02850709

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)