Jump to content

Character codes: Difference between revisions

Line 237:
<pre>38
A</pre>
 
==={{header|Commodore BASIC}}===
Commodore BASIC uses PETSCII code for its character set.
<lang gwbasic>10 CH = 65: REM IN PETSCII CODE FOR 'A' IS 65
20 D$ = "B": REM D$ HOLDS THE CHARACTER 'B'
30 PRINT CHR$(CH): REM THIS PRINTS 'A'
40 PRINT ASC(D$): REM THIS PRINTS 66</lang>
{{Out}}<pre>A
66</pre>
 
=={{header|Batch File}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.