favorite We need a little bit of your help to keep things running, click on this banner to learn more

Week 2: November 16 – 22. Conditional statement. Part 1

Minimum and maximum

Find minimum and maximum between two positive integers.


Two positive integers a and b (a, b109).


Print in one line the minimum and then maximum between two numbers a and b.

Time limit 1 second
Memory limit 128 MiB
Input example #1
4 2

Output example #1
2 4
Input example #2
10 100
Output example #2
10 100