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


 
[¹®Á¦ 5]
 ¼·¾¾ 10¡É¿¡¼­ 20¡É±îÁö¸¦ È­¾¾·Î º¯È¯ÇÏ¿© È­¸é¿¡ Ç¥½ÃÇÏ´Â ÇÁ·Î±×·¥À» ÀÛ¼ºÇϽÿÀ.  ( ´Ü Áõ°¡´Â 1¡É·Î ÇÕ´Ï´Ù. )
 
 
*
IDENTIFICATION DIVISION.
PROGRAM-ID. T5.
*
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SOURCE-COMPUTER. SAMSUNG.
OBJECT-COMPUTER. SAMSUNG.
*
DATA DIVISION.
WORKING-STORAGE SECTION.
*
77 C PIC 99.
77 F PIC ZZ9.9.
*
PROCEDURE DIVISION.
START-RTN.
DISPLAY  " "    ERASE.
DISPLAY  "C F"  LINE  6  POSITION  0.
PERFORM  CONVERT-RTN
VARYING  C  FROM  10  BY  1  UNTIL C > 21.
END-RTN.
STOP RUN.
CONVERT-RTN.
COMPUTE  F = C * 1.8 + 32.
DISPLAY  C  " ==> "  F.
 
 
ÁöÀû ¼ÒÀ¯±ÇÀ» º¸È£ÇսôÙ.
 
¢Ð ¢½ ¢Ñ