58.1k views
0 votes
Write a program that can add, Subtract, multiply and divide entered numbers.


User Tomi
by
3.1k points

1 Answer

3 votes

In Python:

def add(x, y):

return x + y

def subtract(x, y):

return x - y

def multiply(x, y):

return x * y

def divide(x, y):

return x / y

User Shastri
by
3.3k points