For this task i had to make a program that calculates the factorial of a given number, and of course to create a function.

The code i wrote is this:

The program at the end also gives you the option of doing another operation or to end, this was done thanks to a while loop while the factorial calculator was done with a for loop since in there i knew a specific range.

Hope you like it!


CC BY 4.0 Factorial Calculator by fersabal is licensed under a Creative Commons Attribution 4.0 International License.