Description:The program will first ask user to enter two numbers,
calculate their sum and finally print it.
a = int(input("enter first number: "))
b = int(input("enter second number: "))
sum = a + b
print("sum:", sum)
output:
enter first number: 56
enter second number: 12
sum: 68
Name | Views | Likes |
---|---|---|
Python Check Even or Odd. | 477 | 15 |
Python find Largest of Three Number. | 443 | 19 |
Python Print Pattern Programs. | 646 | 18 |
Python Display Calendar. | 494 | 18 |
Python Print Multiplication Table. | 63 | 20 |
Python Find Length of String. | 632 | 18 |
Python Calculate Average Percentage. | 930 | 16 |
Python Add Two Numbers. | 487 | 26 |
Python Get Input from User. | 482 | 20 |
Python Calculate Area of Circle. | 452 | 14 |
Python Find Largest of Two Number | 469 | 14 |
Python Print Prime Numbers. | 496 | 28 |
Comments