Function definition: Difference between revisions
Content added Content deleted
No edit summary |
(→{{header|COBOL}}: Ch) |
||
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. |
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> |