add two numbers

Exercise 1:

# Python program to add two numbers 

# Store input numbers

num1 = input('Enter first number: ')

num2 = input('Enter second number: ')


# Add two numbers

sum = float(num1) + float(num2)

print("The sum two numbers is:", sum)


Exercise 2:

# Python program to Multiply two numbers 

num1 = input('Enter first number: ')

num2 = input('Enter second number: ')

# Multiply two numbers

mul = float(num1) * float(num2)

print("The Multiplication of two numbers is:", mul)




Comments