Expand your horizons with the diverse and informative answers found on IDNLearn.com. Discover prompt and accurate responses from our experts, ensuring you get the information you need quickly.

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)

We are happy to have you as part of our community. Keep asking, answering, and sharing your insights. Together, we can create a valuable knowledge resource. IDNLearn.com has the solutions to your questions. Thanks for stopping by, and see you next time for more reliable information.