Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
9
Task/Integer-comparison/ECL/integer-comparison.ecl
Normal file
9
Task/Integer-comparison/ECL/integer-comparison.ecl
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
CompareThem(INTEGER A,INTEGER B) := FUNCTION
|
||||
Result := A <=> B;
|
||||
STRING ResultText := CASE (Result,1 => 'is greater than', 0 => 'is equal to','is less than');
|
||||
RETURN A + ' ' + TRIM(ResultText) + ' ' + B;
|
||||
END;
|
||||
|
||||
CompareThem(1,2); //Shows "1 is less than 2"
|
||||
CompareThem(2,2); //Shows "2 is equal to 2"
|
||||
CompareThem(2,1); //Shows "2 is greater than 1"
|
||||
Loading…
Add table
Add a link
Reference in a new issue