Factorial calculation
Problem
Write a program with a recursive function to calculate the factorial.
Input
The first line contains a natural number N ( N<=12 ).
Imprint
Print the factorial of the number.
Examples
# |
Input |
Output |
1 |
1 |
1 |
2 |
2 |
2 |
Запрещенные операторы: for
; while
; until