Commit 317f0330 by BellCodeEditor

auto save

parent bae41ef6
Showing with 14 additions and 0 deletions
# input("请输入一个十位的整数:")
# 输入一个十位的整数
# 输出这个十位数的个位数
# 14
# 30
# 17
a=[7,3,5,2,4,6]
b=len(a)
for i in range(0,b-1):
for j in range(0,b-1-i):
if a[j]>a[j+1]:
a[j],a[j+1]=a[j+1],a[j]
print(a)
\ 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