✏️

Factorial

Medium🏷️ Loops📂 Loops
🧩 The problem

TAKE N and DISPLAY N! (1 × 2 × … × N). 0! is 1.

Examples

  • Input: 5 → 120

✏️ Write your pseudocode

Press Run to watch it step by step, and Run tests to check it against every test case.

← All practice problems