RosettaCodeData/Task/Character-codes/BASIC/character-codes-2.basic

5 lines
159 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
10 LET c = 97: REM c is a character code
20 LET d$ = "b": REM d$ holds the character
30 PRINT CHR$(c): REM this prints a
40 PRINT CODE(d$): REM this prints 98