To subtract one numeric value from another in COBOL, you would use the _____ statement.
- ADD
- DIVIDE
- MULTIPLY
- SUBTRACT
The SUBTRACT statement in COBOL is used for performing subtraction operations. It subtracts the content of one or more numeric fields from another, updating the result field.
Loading...
Related Quiz
- You are reviewing a COBOL program and come across the "FILE SECTION" within the "DATA DIVISION." What type of information is typically defined in this section?
- What is the primary purpose of the COBOL Procedure Division?
- In COBOL, which file organization is most suitable for direct access to records by a specific key?
- In a COBOL program for managing employee records, you need to represent each employee's details, including name, ID, and salary. Which type of COBOL data item would be most appropriate for this purpose?
- What is the significance of the USAGE clause when defining data types in COBOL?