how to solve by factoring code example
Example 1: calculate factorial
int factorial(int n) {
int res = 1, i;
for (i = 2; i <= n; i++)
res *= i;
return res;
}
Example 2: how to factorise
print ("bum hole")
int factorial(int n) {
int res = 1, i;
for (i = 2; i <= n; i++)
res *= i;
return res;
}
print ("bum hole")