[Çü½Ä]
|
PERFORM |
ÇÁ·Î½ÃÁ®¸í-1 |
[ THRU ÇÁ·Î½ÃÁ®¸í-2 ]. |
¨ç
|
PERFORM¹®¿¡¼ ÁöÁ¤ÇÑ ÇÁ·Î½ÃÁ®¸í(¼ÒÀý¸í)À»
¼öÇàÇÏ°í, PERFORM¹® ´ÙÀ½ ¹®ÀåÀ¸·Î º¹±ÍÇÕ´Ï´Ù. |
¨è |
ÇÁ·Î½ÃÁ®¸í-1¿¡¼ ÇÁ·Î½ÃÁ®¸í-2±îÁö¸¦ ¼öÇàÇÏ°í, PERFORM¹®
´ÙÀ½ ¹®ÀåÀ¸·Î º¹±ÍÇÕ´Ï´Ù. |
<*>
|
GO TO ¹®Àº ÇÁ·Î½ÃÁ®¸íÀ¸·Î
¼öÇàÀÌ ¿Å°ÜÁø ÈÄ º¹±ÍÇÏÁö ¾Ê½À´Ï´Ù. |
[¿¹¹®]
|
|
PERFORM A-RTN. |
|
|
PERFORM B-RTN THRU C-RTN. |
|
|
ADD 1 TO CNT. |
|
|
: |
|
A-RTN. |
|
|
MOVE 0 TO CNT HAP. |
|
B-RTN. |
|
|
MOVE 1 TO CNT. |
|
C-RTN. |
|
|
ADD CNT TO HAP. |
<Çؼ³>
<*>
|
ù ¹ø° PERFORM¹®¿¡¼ A-RTNÀ» 1ȸ ¼öÇàÇϸç, |
|
µÎ ¹ø° PERFORM¹®À¸·Î º¹±ÍÇÑ ÈÄ, |
|
µÎ ¹ø° PERFORM¹®¿¡¼ B-RTN¿¡¼ C-RTN±îÁö ¼öÇàÇϸç, |
|
PERFORM¹® ´ÙÀ½ ¹®ÀåÀÎ (ADD 1 TO CNT)À¸·Î
º¹±ÍÇÕ´Ï´Ù. |
|