-- Collection of code snippets by Arne Vajhøj 
-- (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
with Ada.Text_IO,Ada.Integer_Text_IO;

use Ada.Text_IO,Ada.Integer_Text_IO;

procedure Type_Demo is

type ta is range 1..100;
type tb is range 0..99;
type tc is range -10..10;

a : ta;
b : tb;
c : tc;

begin
    a := 1;
    Put(Integer(a), Width => 3);
    New_Line;
    b := 2;
    Put(Integer(b), Width => 3);
    New_Line;
    c := 3;
    Put(Integer(c), Width => 3);
    New_Line;
end Type_Demo; 
