1 回答

TA貢獻(xiàn)1865條經(jīng)驗(yàn) 獲得超7個(gè)贊
是的,做數(shù)學(xué)很容易,
乘法:
input_0 = input("What is the first number you want to multiply")
input_1 = input("What is the second number you want to multiply")
answer = int(input_0) * int(input_1)
print(answer)
師:
input_0 = input("What is the first number you want to divide")
input_1 = input("What is the second number you want to divide")
answer = int(input_0) / int(input_1)
print(answer)
添加:
input_0 = input("What is the first number you want to add")
input_1 = input("What is the second number you want to add")
answer = int(input_0) + int(input_1)
print(answer)
減法:
input_0 = input("What is the first number you want to subtract")
input_1 = input("What is the second number you want to subtract")
answer = int(input_0) - int(input_1)
print(answer)
添加回答
舉報(bào)