Calculate Factorial Using C++ For Loop

# Introduction In this challenge, you are asked to write a C++ program that uses a for statement to calculate the factorial of 4. The factorial of a number is the product of all positive integers less than or equal to that number. For example, the factorial of 4 is 4 \* 3 \* 2 \* 1 = 24.

|60 : 00

Click the virtual machine below to start practicing