Hello Ada

Here’s a simple Hello World program written in Ada.  Its as simple as any other Hello World program in most modern languages.

with Ada.Text_IO;

procedure Hello is
begin
Ada.Text_IO.Put_Line(“Hello, world!”);
end Hello;

To compile and execute this execute with gnat, with the make option.  gnat make and then that will create a hello execute that you can then execute like any other program.

Leave a Reply

You must be logged in to post a comment.