Define a function called range that takes 3 numbers as parameters and returns their range (which is maximum - minimum value of those numbers).
Answers
Answered by
0
Explanation:
THIS PROGRAM IS IN PYTHON:
def Range(x,y,z):
if x>y and x>z:
max = x
elif y>x and y>z:
max = y
else:
max = z
print("Maximum",max)
if x<y and x<z:
min = x
elif y<x and y<z:
min = y
else:
min = z
print ("Minimum",min)
Range(x,y,z)
Similar questions