Basic math functions library with MathFunctions class
Write a program that creates a library with a class called MathFunctions. This class includes the following functions:
- Calculate the factorial of a number
- Add numbers from a to b
- Return the larger number between a and b
- Counting the number of digits of a number
- Reverse the number and return it
- Check whether the number is prime
- Calculation of GDM (greatest common divisor) of two numbers
- Calculate LCM (least common multiple) of two numbers
- Counting the number of divisors of a number
- return the absolute value of the number (for example -5 becomes 5)
- Checking whether the number is even or odd