COBOL - Arithmetic Expressions
Arithmetic Expressions may consist of any of the following:
- An identifier described as a numeric elementary item.
- A numeric literal.
- Identifiers and literals separated by arithmetic operators.
- Two arithmetic expressions separated by an arithmetic operator.
- An arithmetic expression enclosed in parentheses.
Following are the arithmetic operators:
Arithmetic statements are of five kinds:
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!