Commit 3501add0 by BellCodeEditor

save project

parent 723726a3
Showing with 11 additions and 0 deletions
c=int(input("请输入长度:"))
b=input("请输入单位:")
if b=="英寸" or b=="in":
a=c/2.54
print(c,"英寸","是",a,"厘米")
elif b=="厘米" or b=="cm":
a=c*2.54
print(c,"厘米","是",a,"英寸")
else:
print("请输入有效答案")
\ 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