如何在輸入號碼時停止該程序?插入停止聲明
print "\t:-- Enter a Multiplication --: \n"
x = ("Enter the first number: ")
y = ("Enter your second number to multiply by: ")
for total in range(1, 12):
x = input("Enter a number: ")
y = input("Multiplied by this: ")
print "\n TOTAL: "
print x, "X", y, "=", (x * y)
#Exits the program.
raw_input("\t\tPress Enter to Exit")
英語:什麼是你的問題?我不明白。 –
我想在輸入數字13後停止程序。 – Will
@將在輸入第13個數字或輸入數字「13」後想要停止? – FamousJameous