Yurttas/PL/IL/Ada-95/ProgUnits/G/ex 05 p.adb
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-- ex_05_p.adb
16
17
18with Text_IO; use Text_IO;
19
20package body EX_05_P is
21
22 package Int_IO is new Integer_IO(Integer); use Int_IO;
23
24 procedure P(H : in String;
25 A,
26 B : in Integer) is
27 begin
28 New_Line;
29 Put_Line(H);
30 Put(A,1);
31 New_Line;
32 Put(B,1);
33 New_Line;
34 end P;
35
36 procedure E(A,
37 B : in out Integer) is
38 T : Integer;
39 begin
40 T := A;
41 A := B;
42 B := T;
43 end E;
44
45end EX_05_P;