File: ex_pack1.adb

package info (click to toggle)
asis 2010-5
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 8,964 kB
  • sloc: ada: 103,084; makefile: 313; xml: 19
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;