View previous topic :: View next topic
|
Author |
Message |
rupesh gullu
New User
Joined: 12 Dec 2008 Posts: 96 Location: Gurgaon
|
|
|
|
Hi,
I have following code and i want to knwo how many times 100-main-para
and 200-new-para are ececuted.
Code: |
MOVE 1 TO CTR.
PERFORM 100-MAIN-PARA UNTIL CTR>20
100-MAIN-PARA.
ADD 1 TO CTR.
PERFORM 200-NEW-PARA WITH TEST AFTER UNTIL CTR>10
100-EXIT
EXIT.
200-NEW-PARA.
ADD 1 to CTR.
200-EXIT.
EXIT. |
Please explain the process.
regards,
rupesh gupta |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
add two new counters, and at the end display them
simple and effective, no speculations or wild guessings |
|
Back to top |
|
|
|