Integer comparison: Difference between revisions

no edit summary
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;
</adalang>
 
=={{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);
}
}</csharplang>
 
=={{header|Clean}}==
Line 282:
 
=={{header|J}}==
Comparison is accomplished by the verb <codett>compare</codett>, which provides logical-numeric output.<br>Text elaborating the output of <codett>compare</codett> is provided by <tt>cti</tt>:
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)
</ocamllang>
 
=={{header|Oz}}==