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.

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!