def add (x,y): "This function adds two numbers" return x+y num1 = float(input("Enter first number: ")) num2 = float(input("Enter second number: ")) print("sum of num1, num2 =", add(num1, num2))
def add (x,y): "This function adds two numbers" return x+ydef subtract (x,y): "This function subtracts two numbers" return x-ydef multiply (x,y): "This function multiplies two numbers"num1 = float(input("Enter first number: "))num2 = float(input("Enter second number: ")) print("of num1, num2 =", add(num1, num2))print("multiplication of num1, num2=", multiply(num1, num2))
ef divide (x,y): "This function divides two numbers" num1 = float(input("Enter first number")) num2 - float(input( "Enter seond number"))print("of num1, num2 =", divide(num1, num2))print(division of num1, num2=", divide(num1, num2"))
def add (x,y): "This function adds two numbers" return x+ydef subtract (x,y): "This function subtracts two numbers" return x-ydef multiply (x,y): "This function multiplies two numbers" return x*ynum1 = float(input("Enter first number: "))num2 = float(input("Enter second number: ")) print("of num1, num2 =", add(num1, num2))print("multiplication of num1, num2=", multiply(num1, num2))print("subtraction of num1, num2=", subtract (num1, num2))def divide (x,y): "This function divides two numbers" return x/y num1 = float(input("Enter first number")) num2 - float(input( "Enter seond number"))print("of num1, num2 =", divide(num1, num2))print("division of num1, num2=", divide(num1, num2))
def add (x,y):
ReplyDelete"This function adds two numbers"
return x+y
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
print("sum of num1, num2 =", add(num1, num2))
def add (x,y):
ReplyDelete"This function adds two numbers"
return x+y
def subtract (x,y):
"This function subtracts two numbers"
return x-y
def multiply (x,y):
"This function multiplies two numbers"
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
print("of num1, num2 =", add(num1, num2))
print("multiplication of num1, num2=", multiply(num1, num2))
ef divide (x,y):
ReplyDelete"This function divides two numbers"
num1 = float(input("Enter first number"))
num2 - float(input( "Enter seond number"))
print("of num1, num2 =", divide(num1, num2))
print(division of num1, num2=", divide(num1, num2"))
def add (x,y):
ReplyDelete"This function adds two numbers"
return x+y
def subtract (x,y):
"This function subtracts two numbers"
return x-y
def multiply (x,y):
"This function multiplies two numbers"
return x*y
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
print("of num1, num2 =", add(num1, num2))
print("multiplication of num1, num2=", multiply(num1, num2))
print("subtraction of num1, num2=", subtract (num1, num2))
def divide (x,y):
"This function divides two numbers"
return x/y
num1 = float(input("Enter first number"))
num2 - float(input( "Enter seond number"))
print("of num1, num2 =", divide(num1, num2))
print("division of num1, num2=", divide(num1, num2))