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.
TAKE N and DISPLAY N! (1 × 2 × … × N). 0! is 1.
Input: 5 → 120Press Run to watch it step by step, and Run tests to check it against every test case.
Ready to go on a fun coding adventure? First, tell me a little about you: