Commit 1f771ccd by BellCodeEditor

save project

parent 098ee322
Showing with 7 additions and 6 deletions
abc = [20,17,9,13,5,6] abc = [88,75,72,82,90,85,78,91]
n = len(abc) n = len(abc)
for j in range(0,5): for i in range(0,n-1):
if abc[a] > abc[a+1]: for a in range(0,n-1):
abc[a],abc[a+1] if abc[a] < abc[a + 1]:
\ No newline at end of file abc[a],abc[a + 1] = abc[a + 1],abc[a]
print(abc)
\ No newline at end of file
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