Respuesta :

The definition of a method named "max" that takes three int parameters and returns the largest parameter is written using Python language.  

In this question, it is required to write a method named max that takes three input parameters and should return the largest parameters among these three parameters.

The given method is implemented using Python language.

def max(a,b,c):  # function defination that return maximum

 

   if (a>b) and (a>c):   #check if the first element is the largest

       largest=a  # first parameter is largest

   elif (b>a) and (b>c):  # check if second paramter is largest

       largest=b  # second parameter is the largest

   else: # if first two parameters are not largest

       largest=c  # then, third parameter is the largest

   return largest # return the largest

   

MaximumNumber=max(10,200,30)  # check the max function with three parameters

print(MaximumNumber) # print the largest number

   

The output of the program is attached.

You can learn more about python method at

https://brainly.com/question/18521637

#SPJ4

       

   

Ver imagen asarwar
ACCESS MORE