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

27th Feb 2017, 2:42 AM
Civil Riders
Civil Riders - avatar
1 ответ
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.
27th Feb 2017, 3:48 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar