**(Beginner question)! I have used multiple dimensional array in my data type (Float_Type) and I'm wondering how can I loop through them. I tried using "Put(A(I, I))" but it is not correct. My code: **
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Test is
type Float_Type is
array (0 .. 4,1 ..3) of Float; --Total float numbers: 15
A: Float_Type;
begin
Put(" Write in your float nums: ");
for I in Float_Type'Range loop
Get(A(I, I)); -- Not correct
end loop; Skip_Line;
Put(" Your float nums: ");
for I in Float_Type'Range loop
Put(A(I, I)); --Not correct
end loop;
end Test;