Anonymous user
Function definition: Difference between revisions
→{{header|COBOL}}: replaced superfluous implementations with standards
(Add LDPL) |
imported>Acediast (→{{header|COBOL}}: replaced superfluous implementations with standards) |
||
Line 1,141:
=={{header|COBOL}}==
In COBOL, ''multiply'' is a reserved word, so the requirements must be relaxed to allow a different function name.
{{
The following uses a subprogram:
<syntaxhighlight lang="cobol"> IDENTIFICATION DIVISION.
PROGRAM-ID. myTest.
Line 1,171:
END PROGRAM myMultiply.</syntaxhighlight>
{{Works with|COBOL 2002}}
This example uses user-defined functions
<syntaxhighlight lang="cobol"> IDENTIFICATION DIVISION.
PROGRAM-ID. myTest.
|