Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 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