Question: Code a COBOL loop using the PERFORM/ UNTIL format that executes a paragraph to display every PREVIOUS fifth number beginning with START-NUM (PIC 999) (include
Code a COBOL loop using the PERFORM/ UNTIL format that executes a paragraph to display every PREVIOUS fifth number beginning with START-NUM (PIC 999) (include the START-NUM) and ending when END-NUM (PIC 999) is reached (equal to or less than END-NUM). Assume that START-NUM is GREATER than or equal to END-NUM. You can create variables to help you. You may use magic numbers. You must code the paragraph too. Example: if START-NUM was 18 and END-NUM was 7 the numbers displayed would be 18 13 8. NOTE THIS IS JUST ONE EXAMPLE!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
