Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Print an uninitialized integer in Ada
-- 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;
-- 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