Question: 5 . 8 LAB: Arrays: Output values below an amount Write a program that first reads a list of 5 integers from input. Then, read

5.8 LAB: Arrays: Output values below an amount
Write a program that first reads a list of 5 integers from input. Then, read another value from the input, and output all integers less than or
equal to that last value.
Ex: If the input is:
50,60,140,200,75,100
the output is:
50,60,75
For coding simplicity, follow every output value by a space, including the last one. Then, output a newline.
Such functionality is common on sites like Amazon, where a user can filter results.
Load default template..
Variables
Not shown when editing
Input

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 Programming Questions!