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

AspenTech InfoPlus 21 - How To Connect And Query Data

AngularJS $on Event Handler Trigger Order

ANALYZE TABLE..VALIDATE STRUCTURE Runs Forever