Program for Addition of Two Numbers in Python
# Addition of Two Number
num1 = int(input("Enter first number :")) # Here we take first number
num2 = int(input("Enter Second number :")) # Here we take second number
num3 = num1 + num2 #perform addtion of two Number
print "Addition of Two Number is ", num3 #print the result.
Output
Enter first number : 12
Enter Second number : 10
Addition of Two Number is 22
# Addition of Two Number
num1 = int(input("Enter first number :")) # Here we take first number
num2 = int(input("Enter Second number :")) # Here we take second number
num3 = num1 + num2 #perform addtion of two Number
print "Addition of Two Number is ", num3 #print the result.
Output
Enter first number : 12
Enter Second number : 10
Addition of Two Number is 22
No comments:
Post a Comment