Prolog program to generate a fibonacci series of N elements.
domains x = integer predicates fibonacci(x) clauses fibonacci(1). fibonacci(N) :- N1 = N - 1, N1 >= 0,!, fibonacci(N1), write(F1," ,"), F = F1 + N.