import math
print("Welcome to the simple math helper")
x = int(input("What would you like to calculate? 1.Squareroot 2.Log 3. Factorial:
"))
if x == 1:
num = int(input("Enter the number to squareroot: "))
print("The sqrt of",num,"is",math.sqrt(num))
if x == 2:
num = int(input("Enter the number to log: "))
print("The log of",num,"is",math.log(num))
if x == 3:
num = int(input("Enter the number to factorial: "))
print("The factorial of",num,"is",math.factorial(num))
else:
print("Input was invalid!")
print("Welcome to the simple math helper")
x = int(input("What would you like to calculate? 1.Squareroot 2.Log 3. Factorial:
"))
if x == 1:
num = int(input("Enter the number to squareroot: "))
print("The sqrt of",num,"is",math.sqrt(num))
if x == 2:
num = int(input("Enter the number to log: "))
print("The log of",num,"is",math.log(num))
if x == 3:
num = int(input("Enter the number to factorial: "))
print("The factorial of",num,"is",math.factorial(num))
else:
print("Input was invalid!")