python整数加法计算器
Input two integer numbers from the user and find their sum/addition in Python.
从用户输入两个整数,然后在Python中找到它们的总和。
Example:
例:
Input:
Enter A: 100
Enter B: 200
Output:
Sum: 300
Program:
程序:
# input two numbers: value of a and b
a = int(input("Enter A: "))
b = int(input("Enter B: "))
# find sum of a and b and assign to c
c = a+b
# print sum (c)
print("Sum: ",c)
Output
输出量
Enter A: 100
Enter B: 200
Sum: 300
Explanation:
说明:
Here, we are reading two va