Yurttas/PL/IL/Ada-95/ProgUnits/G/ex 01.adb

From ZCubes Wiki
Jump to navigation Jump to search
 1--
 2-- Copyright (C) 1998
 3-- All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4--
 5-- Permission to use, copy, modify, and distribute this
 6-- software and its documentation for EDUCATIONAL purposes
 7-- and without fee is hereby granted provided that this
 8-- copyright notice appears in all copies.
 9--
10--
11 
12-- date   : January 1, 1998.
13-- author : Salih Yurttas.
14
15-- purpose : to demonstrate a procedure structure which
16--           is the essence of Ada-95 programming structuring and
17--           composition.
18
19-- ex_01.adb
20
21
22with Text_IO; use Text_IO;
23
24procedure EX_01 is 
25
26  package Int_IO is new Integer_IO(Integer); use Int_IO;
27
28  X : Integer := 2;
29  Y : Integer := 8;
30
31begin
32
33  New_Line;
34
35  Put("X = ");
36  Put(X,1);
37  New_Line;
38
39  Put("Y = ");
40  Put(Y,1);
41  New_Line;
42
43end EX_01;