YAPC::EU 2018 Glasgow Update!
This commit is contained in:
parent
22f33d4004
commit
4e2d22a71d
1170 changed files with 15042 additions and 3047 deletions
13
Task/Caesar-cipher/ZX-Spectrum-Basic/caesar-cipher-1.zx
Normal file
13
Task/Caesar-cipher/ZX-Spectrum-Basic/caesar-cipher-1.zx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
10 LET t$="PACK MY BOX WITH FIVE DOZEN LIQUOR JUGS"
|
||||
20 PRINT t$''
|
||||
30 LET key=RND*25+1
|
||||
40 LET k=key: GO SUB 1000: PRINT t$''
|
||||
50 LET k=26-key: GO SUB 1000: PRINT t$
|
||||
60 STOP
|
||||
1000 FOR i=1 TO LEN t$
|
||||
1010 LET c= CODE t$(i)
|
||||
1020 IF c<65 OR c>90 THEN GO TO 1050
|
||||
1030 LET c=c+k: IF c>90 THEN LET c=c-90+64
|
||||
1040 LET t$(i)=CHR$ c
|
||||
1050 NEXT i
|
||||
1060 RETURN
|
||||
Loading…
Add table
Add a link
Reference in a new issue