Codebase list ohcount / c941801a-846c-49c1-93c4-07f1094d7537/main test / src_dir / ada1.adb
c941801a-846c-49c1-93c4-07f1094d7537/main

Tree @c941801a-846c-49c1-93c4-07f1094d7537/main (Download .tar.gz)

ada1.adb @c941801a-846c-49c1-93c4-07f1094d7537/mainraw · history · blame

		 with Ada.Text_IO; use Ada.Text_IO;

		 procedure Get_Name is

			 Name   : String (1..80);
			 Length : Integer;

		 begin
			 -- no variables needed here :)
			 
			 Put ("Enter your first name> ");
			 Get_Line (Name, Length);
			 New_Line;
			 Put ("Hello ");
			 Put (Name (1..Length));
			 Put (", we hope that you enjoy learning Ada!");

		 end Get_Name;