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

17 lines
319 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
import extensions;
2016-12-05 22:15:40 +01:00
2019-09-12 10:33:56 -07:00
public program()
{
var a := console.readLine().toInt();
var b := console.readLine().toInt();
2016-12-05 22:15:40 +01:00
2017-09-23 10:01:46 +02:00
if (a < b)
2019-09-12 10:33:56 -07:00
{ console.printLine(a," is less than ",b) };
2016-12-05 22:15:40 +01:00
2017-09-23 10:01:46 +02:00
if (a == b)
2019-09-12 10:33:56 -07:00
{ console.printLine(a," equals ",b) };
2016-12-05 22:15:40 +01:00
2017-09-23 10:01:46 +02:00
if (a > b)
2019-09-12 10:33:56 -07:00
{ console.printLine(a," is greater than ",b) }
}