RosettaCodeData/Task/Integer-comparison/Elena/integer-comparison.elena

17 lines
319 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
import extensions;
2026-02-01 16:33:20 -08:00
public Program()
2023-07-01 11:58:00 -04:00
{
2026-02-01 16:33:20 -08:00
var a := Console.readLine().toInt();
var b := Console.readLine().toInt();
2023-07-01 11:58:00 -04:00
if (a < b)
2026-02-01 16:33:20 -08:00
{ Console.printLine(a," is less than ",b) };
2023-07-01 11:58:00 -04:00
if (a == b)
2026-02-01 16:33:20 -08:00
{ Console.printLine(a," equals ",b) };
2023-07-01 11:58:00 -04:00
if (a > b)
2026-02-01 16:33:20 -08:00
{ Console.printLine(a," is greater than ",b) }
2023-07-01 11:58:00 -04:00
}