Factorial · Compiler
Factorial
Count the different orders of n distinct postcards in a row. Use each postcard exactly once. The empty row counts as one order.
- Input
- One integer n from 0 to 12.
- Output
- Print the number of orders as a decimal integer.
Compiler Explorer runs your code when you run or check it.
Loading your exercise draft…