mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
3 lines
No EOL
86 B
Prolog
3 lines
No EOL
86 B
Prolog
nat(1).
|
|
nat(X) :- nat(X1),X is X1+1.
|
|
nat10(X) :- nat(X), ( X > 10 -> !, fail ; true ). |