Compare the size (10 minutes)

Chapter 2-9 magnitude comparator (10 minutes)

The title three arbitrary integer input requirements from small to large outputs.

Input formats:

Input gives three integers in a row, separated by a space therebetween.

Output formats:

In a row of three integers from small to large output, during the "->" connected.

Sample input:

4 2 8

Sample output:

2->4->8
print(*sorted(map(int,input().split())),sep="->")

Guess you like

Origin www.cnblogs.com/nonlinearthink/p/10991515.html