Chapter 2, Problem 2.23Largest and Smallest Integers
Write a program that reads in five integers and
determines and prints the largest and smallest integers in the group. Use only the programming techniques in this chapter.
Input variables (int): largest, smallest, number Read the first input; put it in BOTH largest and smallest
Every time you read another integer:
If it is larger than largest, set largest to the integer read If it is smaller that smallest, set smallest to the integer
Other samples, services and questions:
When you use PaperHelp, you save one valuable — TIME
You can spend it for more important things than paper writing.