-- Print a simple message to demonstrate a trivial Ada program. with Ada.Text_IO; use Ada.Text_IO; -- use clause - automatically search Ada.Text_IO. procedure Hello2 is begin Put_Line("Hello, world!"); -- Note: No longer has "Ada.Text_IO" in front. end Hello2;
If, in this new version of the program, you changed the second-to-last-line
would the program still work?
|Go back to the previous section||Skip to the next section||Go up to lesson 1 outline|
David A. Wheeler (firstname.lastname@example.org)
The master copy of this file is at
The master copy of this file is at "http://www.adahome.com/Tutorials/Lovelace/s1s3.htm".