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)