Python Program
import math
print("Select an operation:")
print("1. Sqrt")
print("2. Log")
print("3. Factorial")
choice = input("Enter choice (1/2/3): ")
if choice == '1':
num = float(input("Enter the number to sqrt: "))
result = math.sqrt(num)
print(f"The square root of {num} is {result}")
elif choice == '2':
num = float(input("Enter the number to take the logarithm: "))
base = float(input("Enter the base of the logarithm: "))
result = math.log(num, base)
print(f"The logarithm of {num} to the base {base} is {result}")
elif choice == '3':
num = int(input("Enter the number to find the factorial: "))
import math
print("Select an operation:")
print("1. Sqrt")
print("2. Log")
print("3. Factorial")
choice = input("Enter choice (1/2/3): ")
if choice == '1':
num = float(input("Enter the number to sqrt: "))
result = math.sqrt(num)
print(f"The square root of {num} is {result}")
elif choice == '2':
num = float(input("Enter the number to take the logarithm: "))
base = float(input("Enter the base of the logarithm: "))
result = math.log(num, base)
print(f"The logarithm of {num} to the base {base} is {result}")
elif choice == '3':
num = int(input("Enter the number to find the factorial: "))