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