Question: 7.18zylab: Filter and Sort a List Write a program that gets a list of integers from input, and outputs non-negative integers in ascending order (lowest

7.18zylab: Filter and Sort a List

Write a program that gets a list of integers from input, and outputs non-negative integers in ascending order (lowest to highest).

Ex: If the input is:

10 -7 4 39 -6 12 2 

the output is:

2 4 10 12 39 

For coding simplicity, follow every output value by a space. Do not end with newline.

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!