From 39c3a6fd797e578367199d4beab6247ea8637a70 Mon Sep 17 00:00:00 2001 From: Jonathan Turner Date: Wed, 25 Oct 2023 11:02:27 -0400 Subject: [PATCH] Attempting to get user input. --- main.adb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/main.adb b/main.adb index 96f5862..ad7b41b 100644 --- a/main.adb +++ b/main.adb @@ -2,8 +2,20 @@ with ComplexCalculator; with Ada.Text_IO; procedure main is + FirstInput : String(1..100); + SecondInput : String(1.100); + begin + -- Your program logic goes here + Ada.Text_IO.Put("Specify first imaginary number: "); + + -- Read the user's input and store it in the UserInput variable. + Ada.Text_IO.Get_Line(UserInput); + + -- Display the user's input. + Ada.Text_IO.Put_Line("You entered: " & UserInput); + -- Example: Display a message Ada.Text_IO.Put_Line("Hello, Ada!");