Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 199 Bytes
# 由使用寫輸入 num
# 如果數字大於 10 , 把數字雙倍輸出
# 否則, 把數字3倍輸出
num = int(input("輸入數字"))
if num >= 10:
print(num * 2)
else :
print(num * 3)
You can’t perform that action at this time.