Integer comparison: Difference between revisions
Content added Content deleted
No edit summary |
|||
Line 2:
=={{header|Ada}}==
<lang ada>
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_Io;
Line 27:
end if;
end Compare_Ints;
</
=={{header|ALGOL 68}}==
Line 142:
=={{header|C sharp|C#}}==
<lang csharp>using System;
class Program
Line 157:
Console.WriteLine("{0} is greater than {1}", a, b);
}
}</
=={{header|Clean}}==
Line 282:
=={{header|J}}==
Comparison is accomplished by the verb <
compare =: <,=,>
Line 432:
=={{header|OCaml}}==
<lang ocaml>
let my_compare a b =
if a < b then "A is less than B"
Line 443:
and b = read_int () in
print_endline (my_compare a b)
</
=={{header|Oz}}==
|