B4Coder
0%
LessonAbout 7 min

Chapter 10 · Lesson 2 of 5

02. Answers that build up

A recursive function can return an answer: each call adds its bit to the answer from a smaller call. Factorial shows how.

Opening the lesson…