0
8.4kviews
Write a PROLOG program to find Fibonacci series.
1 Answer
written 8.3 years ago by | • modified 8.3 years ago |
domains x=integer predicates fibonacci(x) clauses fibonacci(1). fibonacci(N):− N1=N−1, N1>=0,!, fibonacci(N1), write(F1,”,”), F=F1+N.