tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 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