with Ada.Text_IO,Ada.Integer_Text_IO;
use Ada.Text_IO,Ada.Integer_Text_IO;
procedure CharInt is
Char:Character;
Index:Integer;
Stuff:array(0..25)of Character;
begin
Char:='A';
Index:=5+Character'Pos(Char);
Put(Index,5);
Char:=Character'Val(Index);
Put(Char);
New_Line;
Stuff(21):='X';
Index:=2+Character'Pos(Stuff(21));
Put(Index,5);
Stuff(0):=Character'Val(Index);
Put(Stuff(0));
end CharInt;