Write some code that uses a while loop to get 10 integers from the user, one at a time. When all integers have been entered, print the highest number. Example input/output (user input shown in blue) Enter an integer: 1 Enter an integer: -2 Enter an integer: 4 Enter an integer: 99 Enter an integer: 8 Enter an integer: 67 Enter an integer: 83 Enter an integer: 40 Enter an integer: 99 Enter an integer: 8 The highest number is 99

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section: Chapter Questions
Problem 9PP
icon
Related questions
Question

Write some code that uses a while loop to get 10 integers from the user, one at a time. When all integers have been entered, print the highest number.

Example input/output (user input shown in blue)

Enter an integer: 1
Enter an integer: -2
Enter an integer: 4
Enter an integer: 99
Enter an integer: 8
Enter an integer: 67
Enter an integer: 83
Enter an integer: 40
Enter an integer: 99
Enter an integer: 8
The highest number is 99

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr