Answers for "whats the factorial of 4"

C++
14

calculate factorial

int factorial(int n) {
	int res = 1, i; 
    for (i = 2; i <= n; i++) 
        res *= i; 
    return res; 
}
Posted by: Guest on May-02-2020

Code answers related to "whats the factorial of 4"

Browse Popular Code Answers by Language