2
0
Fork 0
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:
Martin Thoma 2014-04-03 13:14:43 +02:00
parent e42277ecda
commit 1bcd6dbccc
3 changed files with 9 additions and 0 deletions

View file

@ -0,0 +1,3 @@
nat(1).
nat(X) :- nat(X1),X is X1+1.
nat10(X) :- nat(X), ( X > 10 -> !, fail ; true ).