A=int(input("enter num:")) b=int(input("enter num2:")) add=a+b output in python
Answers
Answered by
0
Answer:
Output of the program and correction.
Explanation:
A=int(input("enter num:"))
b=int(input("enter num2:"))
add=a+b
output:
Enter num: 4
Enter num2: 5
This will not show the result of the addition.
In this code the user can input the number but not show the output result of add.
To show the result add one more line in this code at the end
print(add) ## this line shows the addition output to the user
Correct Code:
A=int(input("Enter num:"))
b=int(input("Enter num2:"))
add=a+b
print(add)
Similar questions
Computer Science,
5 months ago
English,
9 months ago
Math,
9 months ago
Physics,
11 months ago
Math,
11 months ago