Question: Read integers from input until an integer read is less than the previous integer read. For each integer read, output the integer followed by
Read integers from input until an integer read is less than the previous integer read. For each integer read, output the integer followed by " is in a non-decreasing sequence." End each output with a newline. Ex: If the input is 7 7 7 7 7 -24 7, then the output is: 7 is in a non-decreasing sequence. 7 is in a non-decreasing sequence. 7 is in a non-decreasing sequence. 7 is in a non-decreasing sequence. 7 is in a non-decreasing sequence. Note: Input has at least two integers. c++
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
