Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fibo(0,0).
- fibo(1,1).
- fibo(N,F) :- N > 1,
- N1 is N-1,
- N2 is N-2,
- fibo(N1,F1),
- fibo(N2,F2),
- F is F1+F2.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement