home *** CD-ROM | disk | FTP | other *** search
/ BURKS 2 / BURKS_AUG97.ISO / BURKS / LANGUAGE / ADA / LOVELACE / prinsqua.adb < prev    next >
Text File  |  1996-10-01  |  207b  |  13 lines

  1. with Text_IO, Ada.Integer_Text_IO;
  2. use  Text_IO, Ada.Integer_Text_IO;
  3. procedure Print_Squares is
  4.  X : Integer;
  5. begin
  6.  loop
  7.   Get(X);
  8.  exit when X = 0;
  9.   Put(X * X);
  10.   New_Line;
  11.  end loop;
  12. end Print_Squares;
  13.