Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Guess-the-number/Prolog/guess-the-number-1.pro
Normal file
7
Task/Guess-the-number/Prolog/guess-the-number-1.pro
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
main :-
|
||||
random_between(1, 10, N),
|
||||
repeat,
|
||||
prompt1('Guess the number: '),
|
||||
read(N),
|
||||
writeln('Well guessed!'),
|
||||
!.
|
||||
6
Task/Guess-the-number/Prolog/guess-the-number-2.pro
Normal file
6
Task/Guess-the-number/Prolog/guess-the-number-2.pro
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
?- main.
|
||||
Guess the number: 1.
|
||||
Guess the number: 2.
|
||||
Guess the number: 3.
|
||||
Well guessed!
|
||||
true.
|
||||
Loading…
Add table
Add a link
Reference in a new issue