Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
23
Task/Rot-13/GML/rot-13-1.gml
Normal file
23
Task/Rot-13/GML/rot-13-1.gml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#define rot13
|
||||
var in, out, i, working;
|
||||
in = argument0;
|
||||
out = "";
|
||||
for (i = 1; i <= string_length(in); i += 1)
|
||||
{
|
||||
working = ord(string_char_at(in, i));
|
||||
if ((working > 64) && (working < 91))
|
||||
{
|
||||
working += 13;
|
||||
if (working > 90)
|
||||
{
|
||||
working -= 26;
|
||||
}
|
||||
}
|
||||
else if ((working > 96) && (working < 123))
|
||||
{
|
||||
working += 13;
|
||||
if (working > 122) working -= 26;
|
||||
}
|
||||
out += chr(working);
|
||||
}
|
||||
return out;
|
||||
1
Task/Rot-13/GML/rot-13-2.gml
Normal file
1
Task/Rot-13/GML/rot-13-2.gml
Normal file
|
|
@ -0,0 +1 @@
|
|||
show_message(rot13("My dog has fleas!"));
|
||||
Loading…
Add table
Add a link
Reference in a new issue