The program below is the solution to Deitel’s Java How to Program (9th Edition) Chapter 2 Exercise 2.24.

Question: Write an application that reads five integers and determines and prints the largest and smallest integers in the group. Use only the programming techniques you learned in this chapter.

Largest and smallest number in Java
Sample program run

Write A Comment