SYSTEM

ADDITION

Jeffrin
# Python3 program to add two numbers 

number1 = input("First number: ") 
number2 = input("\nSecond number: ") 

# Adding two numbers 
# User might also enter float numbers 
sum = float(number1) + float(number2) 

# Display the sum 
# will print value in float 
print("The sum of {0} and {1} is {2}" .format(number1, number2, sum)) 

source: https://www.geeksforgeeks.org/python-program-to-add-two-numbers/

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top