如何在输入号码时停止该程序?插入停止声明
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