For these questions, you should iteratively use read int until a READ INT FAIL o
ID: 3756164 • Letter: F
Question
For these questions, you should iteratively use read int until a READ INT FAIL occurs You may assume there will be at least one int in the input and that all int values will be valid for the question. We have provided you with a question q5ex as an example of how to read in the input iteratively. This program reads in input and then prints out the count of how many numbers were in the input. You may discuss this example with your fellow students, but not how you could modify it to solve the problems below. a. Write a program that reads in ints, and only prints numbers (in their original order) that are strictly less than any of the preceding numbers. Each number should be printed on a separate line (e.g., "ida)Explanation / Answer
Hi. please find the answer above.. In case of any doubts, please ask in comments. If the answer helps you, please upvote. I am in great need of upvotes. Thanks!