Write a PHP program to print factorial of a number
HTML-код
- Опубликовано: 4 окт 2024
- The factorial of a number n is defined by the product of all the digits from 1 to n (including 1 and n).
For example,
4! = 4*3*2*1 = 24
6! = 6*5*4*3*2*1 = 720
Note:
It is denoted by n! and is calculated only for positive integers.
Factorial of 0 is always 1.
Thank you.
Your welcome
@@TechTipsWithAlok No problem.