c++ program

profilegina123
Chapter 2, Problem 2.23
Largest 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 

read

 

 

 

 

 

    • 10 years ago
    • 15
    Answer(1)

    Purchase the answer to view it

    blurred-text
    NOT RATED
    • attachment
      gina.docx