You are developing a COBOL program to calculate the total sales for a retail store. Which COBOL statement would you use to add the sales amounts from multiple transactions?

  • ADD statement
  • COMPUTE statement
  • MULTIPLY statement
  • SUM statement
In COBOL, the ADD statement is used to perform arithmetic addition. It is suitable for adding sales amounts from multiple transactions to calculate the total sales in a retail store program. The COMPUTE statement is more versatile but ADD is commonly used for simple additions.
Add your answer
Loading...

Leave a comment

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