Commit 62126542 by BellCodeEditor

save project

parent 9aaf9216
Showing with 14 additions and 0 deletions
a=int(input("请输入一个十进制数字"))
b=input("请输入想要转换的进制")
if b =="二进制":
while a>0:
c=a%2
a=a//2
print(c)
if b =="八进制":
while a>0:
c=a%8
a=a//8
print(c)
pint("hello world")
\ 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