What Is 1000 Factorial Code Example


Example 1: factorial of 0

factorial(0) = 1

Example 2: factorial

unsigned long long factorial(unsigned long long num){      if(num<=0)         return 1;      return num * factorial(num-1); }

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer