Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
5
Task/Loops-While/Prolog/loops-while-1.pro
Normal file
5
Task/Loops-While/Prolog/loops-while-1.pro
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
while(0) :- !.
|
||||
while(X) :-
|
||||
writeln(X),
|
||||
X1 is X // 2,
|
||||
while(X1).
|
||||
1
Task/Loops-While/Prolog/loops-while-2.pro
Normal file
1
Task/Loops-While/Prolog/loops-while-2.pro
Normal file
|
|
@ -0,0 +1 @@
|
|||
?- while(1024).
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
while(0) :- !.
|
||||
while(X) :- X>0,write(X), nl, X1 is X // 2, while(X1).
|
||||
Loading…
Add table
Add a link
Reference in a new issue