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
Get step-by-step solutions from verified subject matter experts
