Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
24
Task/Integer-comparison/Ada/integer-comparison.adb
Normal file
24
Task/Integer-comparison/Ada/integer-comparison.adb
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
with Ada.Integer_Text_IO; use Ada.Integer_Text_Io;
|
||||
|
||||
procedure Compare_Ints is
|
||||
A, B : Integer;
|
||||
begin
|
||||
Get(Item => A);
|
||||
Get(Item => B);
|
||||
|
||||
-- Test for equality
|
||||
if A = B then
|
||||
Put_Line("A equals B");
|
||||
end if;
|
||||
|
||||
-- Test For Less Than
|
||||
if A < B then
|
||||
Put_Line("A is less than B");
|
||||
end if;
|
||||
|
||||
-- Test For Greater Than
|
||||
if A > B then
|
||||
Put_Line("A is greater than B");
|
||||
end if;
|
||||
end Compare_Ints;
|
||||
Loading…
Add table
Add a link
Reference in a new issue