Function definition: Difference between revisions

Content added Content deleted
No edit summary
Line 241:
 
=={{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]
{{works with|OpenCOBOL}}
<lang COBOL> * Multiply in COBOL
 
Line 271 ⟶ 272:
EXIT PROGRAM.
END PROGRAM myMultiply.</lang>
 
=={{header|CoffeeScript}}==
<lang coffeescript>multiply = (a, b) -> a * b</lang>