June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
|
|
@ -1,14 +1,11 @@
|
|||
with Ada.Text_Io; use Ada.Text_Io;
|
||||
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
|
||||
with Ada.Text_IO;
|
||||
|
||||
procedure Loop_And_Half is
|
||||
I : Positive := 1;
|
||||
procedure LoopsAndHalf is
|
||||
begin
|
||||
loop
|
||||
Put(Item => I, Width => 1);
|
||||
exit when I = 10;
|
||||
Put(", ");
|
||||
I := I + 1;
|
||||
end loop;
|
||||
New_Line;
|
||||
end Loop_And_Half;
|
||||
for i in 1 .. 10 loop
|
||||
Ada.Text_IO.put (i'Img);
|
||||
exit when i = 10;
|
||||
Ada.Text_IO.put (",");
|
||||
end loop;
|
||||
Ada.Text_IO.new_line;
|
||||
end LoopsAndHalf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue