RosettaCodeData/Task/Integer-comparison/Aime/integer-comparison.aime
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

27 lines
344 B
Text

void
output(integer a, integer b, text condition)
{
o_integer(a);
o_text(condition);
o_integer(b);
o_byte('\n');
}
integer
main(void)
{
if (a < b) {
output(a, b, " is less then ");
}
if (a == b) {
output(a, b, " is equal to ");
}
if (a > b) {
output(a, b, " is greater than ");
}
return 0;
}