154k views
1 vote
Write a program that reads a list of integers into a list as long as the integers are greater than zero, then outputs the smallest and largest integers in the list.

User Lmnbeyond
by
4.0k points

1 Answer

4 votes

Answer:

Check the explanation

Step-by-step explanation:

10

5

3

21

2

-6

the output will be somthing like this:

2 21

You can then suppose that the list of integers will contain at least 2 values.

Write a program that reads a list of integers into a list as long as the integers-example-1
User Knetsi
by
4.6k points