home *** CD-ROM | disk | FTP | other *** search
- -- Chapter 14 - Programming exercise 1
- with Text_IO;
- use Text_IO;
-
- procedure CH14_1 is
-
- package Int_IO is new Text_IO.Integer_IO(INTEGER);
- use Int_IO;
-
- One_Char : CHARACTER;
-
- begin
-
- Put_Line("Input characters to display, enter Q to stop.");
-
- loop -- Read one character at a time and display it
- Get(One_Char);
- Put(One_Char);
- exit when One_Char = 'Q';
- end loop;
- New_Line(2);
-
- end CH14_1;
-
-
-
-
- -- Result of execution
-
- -- (The output depends on the input.)
-