1 回答
TA贡献1865条经验 获得超7个赞
是的,做数学很容易,
乘法:
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)
添加回答
举报