Skip to content · ⁨본문 바로가기⁩

Factorial (mind the size) · ⁨계승 (크기에 주의)⁩

Factorial (mind the size)

n! is 1 × 2 × … × n, and 0! is 1. It grows fast — 20! is over two billion billion — so the method returns a long, not an int, or the answer would overflow. Multiply from 2 up to n.

Log in or create account · ⁨로그인 또는 계정 만들기⁩

IGCSE, A-Level & AP