365 Factorial 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

530 Valid Hostname Is Expected When Setting Up IIS 10 For Multiple Sites

C Perror Example

Converting A String To Int In Groovy