Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
27
Task/Integer-comparison/Aime/integer-comparison.aime
Normal file
27
Task/Integer-comparison/Aime/integer-comparison.aime
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue