Skip to content
doubtly
Search papers, notes and questions
Ask
Log in
Sign up
#prolog
1
question
Write a Prolog program to calculate the factorial of a number
factorial(0, 1). factorial(N, Result) :- N > 0, N1 is N - 1, factorial(N1, Result1), Result is N * Result1. You can use this Prolog program...
1
answer
Home
Questions
Ask a question
Tests
Me