The factorial of a positive integer n is defined as the product of the sequence , n-1, n-2, ...1 and the factorial of 0 is defined as being 1. Solve this using both loops and recursion.
The factorial of a positive integer n is defined as the product of the sequence , n-1, n-2, ...1 and the factorial of 0 is defined as being 1. Solve this using both loops and recursion. The program is a static command line program to find the factorial values of numbers for some given number of inputs.
- NO DEPENDENCIES REQUIRED!!!
- No real install needed, just make sure you have the bash terminal updated
sudo apt update
sudo apt upgrade
- Run the program like any other common bash script.
python factorial.py
Common problems or issues are that you are not using an authorized user and need to switch to root.
sudo python factorial.py
Contributors names and contact info
Christopher Hyatt (me)
- 0.2
- Various bug fixes and optimizations
- See commit change or See release history
- 0.1
- Initial Release
This project is licensed under the [GNU Privacy v3] License - see the LICENSE.md file for details
Inspiration taken from a list of basic programs to make in any language that I have in a random text file of ideas.