Your COBOL program processes financial transactions, and you need to calculate the balance after a series of deposits and withdrawals. Which arithmetic statement is suitable for this scenario?

  • ADD
  • COMPUTE
  • MULTIPLY
  • SUBTRACT
To calculate the balance after deposits and withdrawals, you should use the SUBTRACT operation to deduct withdrawals from the total balance. COMPUTE, ADD, and MULTIPLY are not appropriate for this specific calculation.
Add your answer
Loading...

Leave a comment

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