![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Example 1 for hello.2.adaThis is how the display area of the Ada editor for hello.2.ada would look after you have completed the first exercise:
---- File Name: hello.2.ada--with text_io; use text_io; procedure Hello isbegin putline ("Hello, Apex!end Hello;Use the Back button to return to the tutorial.
Example 2 for hello.2.adaThis is how the display area of the language editor for hello.2.ada would look after you have corrected the errors:
---- File Name: hello.2.ada--with Text_Io; use Text_Io; procedure Hello isbegin Put_Line ("Hello, Apex!");end Hello;Use the Back button to return to the tutorial.
Example 3 for hello.2.adaThis is how the display area of the language editor for hello.2.ada would look after you have modified it to use the if statement:
---- File Name: hello.2.ada--with Text_Io; use Text_Io;with Calendar;use Calendar;procedure Hello isbegin if Day (Clock) = 1 then Put_Line ("Hello, first day of the month."); else Put_Line ("Hello, rest of the month."); end if;end Hello;
Rational Software Corporation http://www.rational.com support@rational.com techpubs@rational.com Copyright © 1993-2001, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |