Question: Write a C++ program which asks the user to enter: an integer n, and a sequence of n integer. Your program is supposed to find

Write a C++ program which asks the user to enter:

an integer n, and

a sequence of n integer.

Your program is supposed to find the maximum integer in the input sequence. If n = 0, your program should display the message Empty sequence.

For example, if n = 6 and the sequence of integers is 101100275, then the max is 100.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!