8 Factorial Calculator Code Example Get link Facebook X Pinterest Email Other Apps September 08, 2007 Example: calculate factorial int factorial(int n) { int res = 1, i; for (i = 2; i <= n; i++) res *= i; return res; } Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment