langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
20
Task/Integer-comparison/Objeck/integer-comparison.objeck
Normal file
20
Task/Integer-comparison/Objeck/integer-comparison.objeck
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
bundle Default {
|
||||
class IntCompare {
|
||||
function : Main(args : String[]) ~ Nil {
|
||||
a := Console->GetInstance()->ReadString()->ToInt();
|
||||
b := Console->GetInstance()->ReadString()->ToInt();
|
||||
|
||||
if (a < b) {
|
||||
Console->GetInstance()->Print(a)->Print(" is less than ")->PrintLine(b);
|
||||
};
|
||||
|
||||
if (a = b) {
|
||||
Console->GetInstance()->Print(a)->Print(" is equal than ")->PrintLine(b);
|
||||
};
|
||||
|
||||
if (a > b) {
|
||||
Console->GetInstance()->Print(a)->Print(" is greater than ")->PrintLine(b);
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue