Attempting to get user input.
This commit is contained in:
parent
36fc6963f5
commit
39c3a6fd79
12
main.adb
12
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!");
|
||||
|
Reference in New Issue
Block a user