Re: 7the grade issue



Mauro Di Nuzzo wrote...
>
>Yes, it gives all the possible solution. You have to press ; after the first
>to see them all in the toplevel.
>Remember that the arguments represent the number of that coin. For example:
>
>?- coins(110, [2,0,0,0,0]).
>yes
>
>?- coins(110,[0,1,8,1,0]).
>yes
>
>?- coins(110, X).
>
>X = [0,0,0,0,1] ;
>X = [0,0,0,1,105] ;
>X = [0,0,0,2,100] etc etc etc

I see. Many thanks.



.



Relevant Pages

  • Re: Prolog: A Toy For Erudition
    ... Mauro Di Nuzzo wrote: ... I began the odyssey that eventually led me to this newsgroup long ago, as a biomedical applications Fortran programmer with some graduate training in biostatistic and epidemiology, at a time when applications programming was entirely ad hoc, and it was out of that concrete experience -- a slow, repetitive, laborious process of faithfully translating substantive biomedical questions and observations into computer programs and "input data" and faithfully translating the output back into substantive terms -- that the perspective which became second nature to me and remains to this day the perspective I try to uphold in this newsgroup was born: ...
    (comp.lang.prolog)
  • Re: i am a prolog beginner pls help me in getting this
    ... Mauro Di Nuzzo ... odd elements. ...
    (comp.lang.prolog)