Created
October 31, 2012 12:44
-
-
Save drillbits/3986851 to your computer and use it in GitHub Desktop.
1000反田L on COBOL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
000000 IDENTIFICATION DIVISION. | |
000000 PROGRAM-ID. nTandaX. | |
000000* | |
000000 DATA DIVISION. | |
000000 WORKING-STORAGE SECTION. | |
000000 01 APB PIC X(26) VALUE 'ABCDEFGHIJKLMNOPORSTUVWXYZ'. | |
000000 01 I PIC 9(4). | |
000000 01 G PIC 9(4). | |
000000 01 N PIC 9(4). | |
000000 01 X PIC ZZZ9. | |
000000* | |
000000 PROCEDURE DIVISION. | |
000000* | |
000000 PERFORM VARYING I FROM 1 BY 1 UNTIL I > 1000 | |
000000 DIVIDE I BY 26 GIVING G REMAINDER N | |
000000 IF N = 0 | |
000000 MOVE 26 TO N | |
000000 END-IF | |
000000 MOVE I TO X | |
000000 DISPLAY X "反田" APB(N:1) | |
000000 END-PERFORM. | |
000000 STOP RUN. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment