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.
Arithmetic Operators:Following are the arithmetic operators:
Arithmetic Statements
Arithmetic statements are of five kinds:
-
ADD
-
SUBTRACT
-
MULTIPLY
-
DIVIDE
-
COMPUTE
If you have any doubts or queries related to this chapter, get them clarified from our Mainframe experts on ibmmainframer Community!