mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
Prolog: Zahlen von 1 bis 10 Beispiel hinzugefügt
This commit is contained in:
parent
e42277ecda
commit
1bcd6dbccc
3 changed files with 9 additions and 0 deletions
|
@ -0,0 +1,3 @@
|
|||
nat(1).
|
||||
nat(X) :- nat(X1),X is X1+1.
|
||||
nat10(X) :- nat(X), ( X > 10 -> !, fail ; true ).
|
Loading…
Add table
Add a link
Reference in a new issue