Demo entry 6720639

1

   

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

#homework6
#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]
print(L)

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).