Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
15
Task/Pangram-checker/Ring/pangram-checker.ring
Normal file
15
Task/Pangram-checker/Ring/pangram-checker.ring
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pangram = 0
|
||||
s = "The quick brown fox jumps over the lazy dog."
|
||||
see "" + pangram(s) + " " + s + nl
|
||||
|
||||
s = "My dog has fleas."
|
||||
see "" + pangram(s) + " " + s + nl
|
||||
|
||||
func pangram str
|
||||
str = lower(str)
|
||||
for i = ascii("a") to ascii("z")
|
||||
bool = substr(str, char(i)) > 0
|
||||
pangram = pangram + bool
|
||||
next
|
||||
pan = (pangram = 26)
|
||||
return pan
|
||||
Loading…
Add table
Add a link
Reference in a new issue