Hey guys, I'm having real trouble trying to wrap my head around this one...can anyone help me out? here is the problem:

write a program that takes a set of numbers and determines which are the two smallest.

Ask the user for the following information,:

- A terminating value (real number). The user will enter this value again later, to indicate that he or she is finished providing input.
- A sequence of real numbers. Keep asking for numbers until the terminating value is entered.

Compute and output the smallest and second-smallest real number.

I'm a beginner soo just the basic code would be awesome!

Thank you soo much