Quantcast
Channel: inside the insight » Artificial Intelligence
Viewing all articles
Browse latest Browse all 3

Prolog program to Calculate factorial of N

$
0
0
We know the formula for calculating n! (factorial of n)  is: n! = n * (n-1)! We can interpret this simple mathematical equation into a Prolog program. To do so, we must determine the basis of the recursion, 0! = … Continue reading

Viewing all articles
Browse latest Browse all 3

Trending Articles