0
How to write program for adding two numbers in correct form?
If I'm writing default program to add 40 and 30 then I got an output as enter first number: Enter second number: 70
1 Réponse
0
n1=int (input ("enter first number: "))
print (n1)
n2= int (input ("enter second number: "))
print (n2)
sum=n1+n2
print ("sum is: ")
print (sum)
you can avoid writing multiple print but this one is ok to understand what's going on.
you are not printing entered values that why it is not showing.