Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
9
Task/Integer-sequence/Ada/integer-sequence-1.adb
Normal file
9
Task/Integer-sequence/Ada/integer-sequence-1.adb
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
with Ada.Text_IO;
|
||||
procedure Integers is
|
||||
Value : Integer := 1;
|
||||
begin
|
||||
loop
|
||||
Ada.Text_IO.Put_Line (Integer'Image (Value));
|
||||
Value := Value + 1; -- raises exception Constraint_Error on overflow
|
||||
end loop;
|
||||
end Integers;
|
||||
7
Task/Integer-sequence/Ada/integer-sequence-2.adb
Normal file
7
Task/Integer-sequence/Ada/integer-sequence-2.adb
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
with Ada.Text_IO;
|
||||
procedure Positives is
|
||||
begin
|
||||
for Value in Positive'Range loop
|
||||
Ada.Text_IO.Put_Line (Positive'Image (Value));
|
||||
end loop;
|
||||
end Positives;
|
||||
Loading…
Add table
Add a link
Reference in a new issue