Computer Science, asked by shreyashijoshi5, 1 month ago

please tell me the answer.​

Attachments:

Answers

Answered by smurf67
4

Program :

number1 = int(input('Enter First number : '))

number2 = int(input('Enter Second number : '))

number3 = int(input('Enter Third number : '))def largest(num1, num2, num3):

if (num1 > num2) and (num1 > num3):

largest_num = num1

elif (num2 > num1) and (num2 > num3):

largest_num = num2

else:

largest_num = num3

print("The largest of the 3 numbers is : ", largest_num)def smallest(num1, num2, num3):

if (num1 < num2) and (num1 < num3):

smallest_num = num1

elif (num2 < num1) and (num2 < num3):

smallest_num = num2

else:

smallest_num = num3

print("The smallest of the 3 numbers is : ", smallest_num)

largest(number1, number2, number3)

smallest(number1, number2, number3

Similar questions