Program that describes the functionality of IF-ELSE Clause.
IDENTIFICATION DIVISION. PROGRAM-ID. IF-TEST. DATA DIVISION. WORKING-STORAGE SECTION. 77 NUM1 PIC 99. 77 NUM2 PIC 99. PROCEDURE DIVISION. PARA-1. DISPLAY "ENTER NUM1..." WITH NO ADVANCING. ACCEPT NUM1. DISPLAY "ENTER NUM2..." WITH NO ADVANCING. ACCEPT NUM2. IF NUM1 = NUM2 CONTINUE ELSE IF NUM1 > NUM2 DISPLAY NUM1 " IS GREATER THAN " NUM2 ELSE DISPLAY NUM2 " IS GREATER THAN " NUM1 END-IF END-IF. STOP RUN. ******* OUTPUT ******* ENTER NUM1...50 ENTER NUM2...15 50 IS GREATER THAN 15