Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
7
Task/Rot-13/XPL0/rot-13.xpl0
Normal file
7
Task/Rot-13/XPL0/rot-13.xpl0
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
code ChIn=7, ChOut=8;
|
||||
int C, CC;
|
||||
repeat C:= ChIn(1); CC:= C&~$20; \CC handles lowercase too
|
||||
ChOut(0, C + (if CC>=^A & CC<=^M then +13
|
||||
else if CC>=^N & CC<=^Z then -13
|
||||
else 0));
|
||||
until C = $1A; \EOF
|
||||
Loading…
Add table
Add a link
Reference in a new issue