Westonci.ca is the best place to get answers to your questions, provided by a community of experienced and knowledgeable experts. Get immediate and reliable solutions to your questions from a knowledgeable community of professionals on our platform. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

PLEASE HELP Write a program that loads one three-digit number and prints the root of its largest
digits in python.​


Sagot :

Answer:

num1 = float(input("Enter first digit of number: "))

num2 = float(input("Enter second digit of number: "))

num3 = float(input("Enter third digit of number: "))

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

  largest = num1

num_sqrt = num1 ** 0.5

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

  largest = num2

num_sqrt = num2 ** 0.5

else:

  largest = num3

num_sqrt = num3 ** 0.5

print("The square root of largest digit of the three digit number is",num_sqrt)

Explanation:

num1 = float(input("Enter first digit of number: "))

num2 = float(input("Enter second digit of number: "))

num3 = float(input("Enter third digit of number: "))

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

  largest = num1

num_sqrt = num1 ** 0.5

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

  largest = num2

num_sqrt = num2 ** 0.5

else:

  largest = num3

num_sqrt = num3 ** 0.5

print("The square root of largest digit of the three digit number is",num_sqrt)