Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Pangram-checker/Prolog/pangram-checker.pro
Normal file
12
Task/Pangram-checker/Prolog/pangram-checker.pro
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
pangram(L) :-
|
||||
numlist(0'a, 0'z, Alphabet),
|
||||
forall(member(C, Alphabet), member(C, L)).
|
||||
|
||||
pangram_example :-
|
||||
L1 = "the quick brown fox jumps over the lazy dog",
|
||||
( pangram(L1) -> R1= ok; R1 = ko),
|
||||
format('~s --> ~w ~n', [L1,R1]),
|
||||
|
||||
L2 = "the quick brown fox jumped over the lazy dog",
|
||||
( pangram(L2) -> R2 = ok; R2 = ko),
|
||||
format('~s --> ~w ~n', [L2, R2]).
|
||||
Loading…
Add table
Add a link
Reference in a new issue