Created
November 8, 2020 15:14
-
-
Save MaxBarraclough/a393539f7c71514237dc553fa22e4559 to your computer and use it in GitHub Desktop.
Print an uninitialized integer in Ada
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Prints a nondeterministic integer value | |
with Ada.Text_IO; use Ada.Text_IO; | |
procedure Hello is | |
subtype NumFingers is Integer range 0..10; | |
my_num_fingers : NumFingers; -- := 4; | |
begin | |
-- my_num_fingers; := 3; | |
Put_Line ("The number is: " & my_num_fingers'Image); | |
end Hello; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment