"Haris Bogdanovich" <
fbogd...@xnet.hr> wrote in message
news:k82vp3$avt$1...@gregory.bnet.hr...
> Hi.
>
> When I enter
> factorial(0,1).
> in Gnu prolog I get some error.
The error is that factorial/2 is not available (I guess).
> When I put the same line in
>
factorial.pl and do
> consult factorial. I again get some error. Where is the problem ?
Which error? Plus, ideally, you would show your code.
> How prolog knows when I state a fact/rule or ask a question ?
I'd suggest you go through a Prolog tutorial, or even just the manual that
comes with GNU Prolog.
-LV