2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/Programmierparadigmen/scripts/prolog/zahlen-bis-10.pl

3 lines
86 B
Perl
Raw Normal View History

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