Commit ce6d6fba by BellCodeEditor

save project

parent e32cde20
Showing with 1 additions and 1 deletions
...@@ -2,7 +2,7 @@ a = [88, 75, 72, 82, 90, 85, 78, 91] ...@@ -2,7 +2,7 @@ a = [88, 75, 72, 82, 90, 85, 78, 91]
n=len(a) n=len(a)
for i in range(n-1): for i in range(n-1):
for j in range(n-1-i): for j in range(n-1-i):
if a[j] > a[j+1]: if a[j] < a[j+1]:
c=a[j] c=a[j]
a[j]=a[j+1] a[j]=a[j+1]
a[j+1]=c a[j+1]=c
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment