Computer Science, asked by amsaelangovan7292, 9 months ago

A=int(input("enter num:")) b=int(input("enter num2:")) add=a+b output in python

Answers

Answered by sushiladevi4418
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