Re: 7the grade issue
- From: harryooopotter@xxxxxxxxxxx (Harry)
- Date: Tue, 04 Oct 2005 02:45:58 GMT
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.
.
- References:
- 7the grade issue
- From: Harry
- Re: 7the grade issue
- From: A . L .
- Re: 7the grade issue
- From: Harry
- Re: 7the grade issue
- From: A . L .
- Re: 7the grade issue
- From: Harry
- Re: 7the grade issue
- From: Mauro Di Nuzzo
- Re: 7the grade issue
- From: Harry
- Re: 7the grade issue
- From: Mauro Di Nuzzo
- 7the grade issue
- Prev by Date: Re: 7the grade issue
- Next by Date: Timeline date calculations
- Previous by thread: Re: 7the grade issue
- Next by thread: Re: 7the grade issue
- Index(es):
Relevant Pages
|
|