In COBOL, what is the purpose of the COMPUTE statement?

  • To compare two data items
  • To initialize variables with default values
  • To manipulate string data
  • To perform complex arithmetic operations on numeric data items
The COMPUTE statement in COBOL is used for performing complex arithmetic operations on numeric data items. It provides a concise and readable way to express arithmetic computations in COBOL programs.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *