Saturday, March 8, 2025

LOOP PROGRAMS IN PROLOG

 1. n n-1 n-2 ....5 4 3 2 1 series in prolog -CLICK

2. 1 2 3 4 5 ... 10.

3. 0 2 4 6 8 10.

4.1 3 5 7 9 11 ....

5.1 2 3 ...n

6. Factorial of a number.CLICK

7. Fibonacci series. CLICK

8.1+2+3+4....+N

9. LCM of two numbers in prolog

10. GCD of two numbers in prolog

11. prime number checking.

No comments:

Post a Comment