File: ex_pack1.adb

package info (click to toggle)
asis 2005-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 6,424 kB
  • ctags: 27
  • sloc: ada: 73,883; makefile: 201
file content (15 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
with GNAT.IO; use GNAT.IO;
package body Ex_Pack1 is
   procedure Put_Factorial
     (I   : in Natural;
      Res : in Positive)
   is
   begin
      New_Line;
      Put ("For ");
      Put (I);
      Put (" the factorial is ");
      put (Res);
      New_Line;
   end Put_Factorial;
end Ex_Pack1;