본문 바로가기

계승 (크기에 주의)

계승 (크기 주의)

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.

로그인 또는 계정 만들기

IGCSE, A-Level & AP