2. Factorial Iterative
Lesson 3 of 31 in Coddy's 30 Days of Logic Building in C++ course.
Challenge
EasyWrite a function to calculate the factorial of a given number iteratively.
- Input: 5
- Output: 120
Try it yourself
int factorialIterative(int n) {
// Write code here
}All lessons in 30 Days of Logic Building in C++
1Introduction
Introduction