himma himma
  • 31-10-2021
  • Computers and Technology
contestada

Write a program that can add, Subtract, multiply and divide entered numbers.
​

Respuesta :

ibnuamam104
ibnuamam104 ibnuamam104
  • 31-10-2021

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

Answer Link

Otras preguntas

Claire had 3 packs of clay....she Divided the clay into equal portions for the students in her art class.  Each portion was 1/2 of a pack of clay. write a expre
P=3a+2b2 Make a the subject of the formula
What is the length of the line segment in the x-y plane with end points at (-2,-2) and (2,3)? Can anyone explain me how to make this one step by step?
Which two values of x are roots of the polynomial below? x2 + 5x + 9
15. why did the Berbers eventually learn to live peacefully with thier Arab conquerors?
How did the pioneers passing through Indian territory affect the native Americans
simplify the expression 8a - 2b + 12a - 2a - 4b
A dog gives birth to five puppies. What percentage of its chromosomes does each puppy share with the mother? A. 25% B. 50% C. 75% D. 100%
The cost of renting a pickup truck at Trucks Plus is $25 plus $15 cents per mile driven. The cost of renting a truck at Need-A-Truck is $25 plus $10 cents per m
Milk production a. is negatively regulated by prolactin. b. is positively regulated by prolactin. c. is positively regulated by milk-producing factor. d. is an