The document contains three Prolog programs. The first program calculates the sum of N natural numbers. The second program finds the sum of digits of a number. The third program calculates the factorial of a number.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
25 views
AI Assignment
The document contains three Prolog programs. The first program calculates the sum of N natural numbers. The second program finds the sum of digits of a number. The third program calculates the factorial of a number.