Function definition: Difference between revisions

Content added Content deleted
No edit summary
Line 241: Line 241:


=={{header|COBOL}}==
=={{header|COBOL}}==
In COBOL, ''multiply'' is a reserved word, so the requirements must be relaxed to allow a different function name. This version works with [http://www.opencobol.org/ OpenCOBOL]
In COBOL, ''multiply'' is a reserved word, so the requirements must be relaxed to allow a different function name.
{{works with|OpenCOBOL}}
<lang COBOL> * Multiply in COBOL
<lang COBOL> * Multiply in COBOL


Line 271: Line 272:
EXIT PROGRAM.
EXIT PROGRAM.
END PROGRAM myMultiply.</lang>
END PROGRAM myMultiply.</lang>

=={{header|CoffeeScript}}==
=={{header|CoffeeScript}}==
<lang coffeescript>multiply = (a, b) -> a * b</lang>
<lang coffeescript>multiply = (a, b) -> a * b</lang>