Add tasks for all the new languages

This commit is contained in:
Tina Müller 2016-12-05 23:44:36 +01:00
parent 9dc3c2bb62
commit bba7bfd280
13208 changed files with 134745 additions and 0 deletions

View file

@ -0,0 +1,16 @@
function caesarCipher rot phrase
local rotPhrase, lowerLetters, upperLetters
put "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz" into lowerLetters
put "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ" into upperLetters
repeat for each char letter in phrase
get charTonum(letter)
if it >= 65 and it <= 90 then
put char ((it + rot) - 64) of upperLetters after rotPhrase
else if it >= 97 and it <= 122 then
put char ((it + rot) - 96) of lowerLetters after rotPhrase
else
put letter after rotPhrase
end if
end repeat
return rotPhrase
end caesarCipher