Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

팩토리얼(Factorial)

지금까지 우리는 다음 내용들을 살펴보았습니다.

  • 함수를 정의하는 방법
  • 함수를 호출하는 방법
  • Rust에서 사용할 수 있는 정수 타입들
  • 정수 데이터에 쓸 수 있는 산술 연산자
  • 비교 연산자와 if/else를 활용한 조건부 로직

자, 이제 배운 내용을 토대로 직접 팩토리얼을 구현해 볼 준비가 되었습니다!

Exercise

The exercise for this section is located in 02_basic_calculator/05_factorial