°æ°í
  ¹Ú¿ì¹üÀÇ Çã¶ô ¾øÀÌ´Â »ó¾÷Àû »ç¿ëÀ» ±ÝÇÕ´Ï´Ù.


 
[¹®Á¦ 3]
 ¾Æ·¡¿Í °°Àº ÀÏÂ÷¿ø ¹è¿­ÀÌ ÀÖ½À´Ï´Ù. 
A(1)
A(2)
A(3)
A(4)
A(5)
A(6)
A(7)
A(8)
A(9)
A(10)
11
22
33
44
55
66
77
88
99
00
 ÀÌ ¹è¿­À» È­¸é¿¡ Ç¥½ÃÇÑ ÈÄ ¾Æ·¡¿Í °°ÀÌ ¹è¿­À» º¯È¯ÇÏ¿© È­¸é¿¡ Ç¥½ÃÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇϽÿÀ. 
A(1)
A(2)
A(3)
A(4)
A(5)
A(6)
A(7)
A(8)
A(9)
A(10)
00
99
88
77
66
55
44
33
22
11
 
 
 
*
IDENTIFICATION DIVISION.
PROGRAM-ID. T3.
*
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. SAMSUNG.
OBJECT-COMPUTER. SAMSUNG.
*
DATA DIVISION.
WORKING-STORAGE SECTION.
*
77 I PIC 99 VALUE  0.
77 J PIC 99 VALUE  0.
01 TAB1-ENTRY VALUE  "11223344556677889900".
03 A PIC 99 OCCURS  10  TIMES.
01 TAB2-ENTRY.
03 B PIC 99 OCCURS  10  TIMES.
*
PROCEDURE DIVISION.
START-RTN.
DISPLAY  " "  ERASE.
DISPLAY  "MATRIX A "  LINE  6  POSITION  1.
PERFORM  DIS1-RTN
VARYING I  FROM 1  BY 1  UNTIL  I > 10.
PERFORM  MOVE-RTN
VARYING I  FROM 1  BY 1  UNTIL  I > 10.
DISPLAY  "MATRIX B "  LINE  9  POSITION  1.
PERFORM  DIS2-RTN
VARYING I  FROM 1  BY 1  UNTIL I > 10.
*
END-RTN.
STOP RUN.
DIS1-RTN.
DISPLAY  A(I)  LINE   7  POSITION  0.
DISPLAY  " "    LINE   7  POSITION  0.
DIS2-RTN.
DISPLAY  B(I)  LINE  10  POSITION  0.
DISPLAY  " "    LINE  10  POSITION  0.
MOVE-RTN.
COMPUTE  J  =  11 - I.
MOVE  A(I)  TO  B(J).
 
 
ÁöÀû ¼ÒÀ¯±ÇÀ» º¸È£ÇսôÙ.
 
¢Ð ¢½ ¢Ñ