Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
12
Task/Rot-13/BCPL/rot-13.bcpl
Normal file
12
Task/Rot-13/BCPL/rot-13.bcpl
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
get "libhdr"
|
||||
|
||||
let rot13(x) =
|
||||
'A' <= x <= 'Z' -> (x - 'A' + 13) rem 26 + 'A',
|
||||
'a' <= x <= 'z' -> (x - 'a' + 13) rem 26 + 'a',
|
||||
x
|
||||
|
||||
let start() be
|
||||
$( let ch = rdch()
|
||||
if ch = endstreamch then break
|
||||
wrch(rot13(ch))
|
||||
$) repeat
|
||||
Loading…
Add table
Add a link
Reference in a new issue