Demo entry 6720639



Submitted by anonymous on Mar 17, 2018 at 05:55
Language: Python 3. Code size: 219 Bytes.

#method 1 冒泡法
L = list(map(float, input('enter 3 numbers:').split()))
for i in range(len(L)-1):
    for j in range(len(L)-1-i):
        if L[j] <L[j+1]:
            L[j], L[j+1] = L[j+1], L[j]

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).