RosettaCodeData/Task/Character-codes/Oberon-2/character-codes.oberon-2

12 lines
143 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
MODULE Ascii;
IMPORT Out;
VAR
c: CHAR;
d: INTEGER;
BEGIN
c := CHR(97);
d := ORD("a");
Out.Int(d,3);Out.Ln;
Out.Char(c);Out.Ln
END Ascii.