Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order. Ex: If the input is: XXXXXXXXXX the output is: 2 and 3 Hint: Make sure to...


Write a program that reads a list of integers, and outputs the two smallest integers in the list, in ascending order.


Ex: If the input is:


10 5 3 21 2


the output is:


2 and 3


Hint: Make sure to initialize the second smallest and smallest integers properly.



Python please; also the input is a list of numbers so using int(input()) gives an error



Jun 10, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions ยป

Submit New Assignment

Copy and Paste Your Assignment Here