Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
13
Task/Caesar-cipher/XPL0/caesar-cipher.xpl0
Normal file
13
Task/Caesar-cipher/XPL0/caesar-cipher.xpl0
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
code ChIn=7, ChOut=8, IntIn=10;
|
||||
int Key, C;
|
||||
[Key:= IntIn(8);
|
||||
repeat C:= ChIn(1);
|
||||
if C>=^a & C<=^z then C:= C-$20;
|
||||
if C>=^A & C<=^Z then
|
||||
[C:= C+Key;
|
||||
if C>^Z then C:= C-26
|
||||
else if C<^A then C:= C+26;
|
||||
];
|
||||
ChOut(0, C);
|
||||
until C=$1A; \EOF
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue