Wednesday, May 4, 2011

FIBONACCI SERIES IN PROLOG

fibonacci(0,1).
fibonacci(1,1).
fibonacci(A,B) :- A > 1, A1 is A - 1, A2 is A - 2, fibonacci(A1,B1), fibonacciA2,B2), B is B1 + B2.

1 comment:

  1. final year project help

    Final year projects are crucial and can make a lot of difference to your grades. In fact, they account for more than 25% of your final year marks

    to get more - https://qualityassignmenthelp.com/final-year-project

    ReplyDelete