0
Что такое факториал и пригодится ли мне это в программировании?
2 ответов
+ 3
Factorial is a mathematical formula for calculating the product (multiplication) of the first N natural numbers.
It is used in various areas of math, for example probability theory.
It can be useful for you as a programmer, by learning about different algorithms and how they can be represented as code. Factorial is often used as the basic example for teaching recursion.
If you will ever use factorial in a programming job, depends really on the professional area that you will work in. As a web developer probably you will never need to calculate factorial, BUT there can be situations when understanding and being able to use recursion is really useful.
+ 2
Спасибо (: