Write a program to calculate the factorial of a number N.
Asked in
Examples
Click Run to test sample cases, or Submit to evaluate all cases