8 Factorial Calculator Code Example


Example: calculate factorial

int factorial(int n) { 	int res = 1, i;      for (i = 2; i <= n; i++)          res *= i;      return res;  }

Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?