Problem Statement: Write a Python program that:
- Defines a function named factorial that takes a number as an argument and calculates its factorial using a loop AND recursion.
- Returns the calculated factorial.
- Calls the function with a sample number and prints the output.
Problem Statement: Write a Python program that:
- Asks the user for a number as input.
- Uses the math module to calculate the: o Square root of the number o Natural logarithm (log base e) of the number o Sine of the number (in radians)
- Displays the calculated results.