Page not loading? Try clicking here.
Placeholder

#208

파일입출력 - 형성평가4 1s - MB

Problems

정수 n(n≤10)을 입력받아 n!(팩토리얼)을 구하여 출력하시오.

n! = n * (n-1) * (n-2) * (n-3) … 즉, 4! = 4 * 3 * 2 * 1 이다.

 

입력파일 : input.txt

출력파일 : output.txt


Example

5
120

Source

자기주도C언어프로그래밍

You must sign in to write code.