Language FORTRAN-II
Date: | 09/28/10 |
Author: | Dave Pitts |
URL: | n/a |
Comments: | 0 |
Info: | n/a |
Score: | (3.00 in 21 votes) |
C C FORTRAN-II VERSION OF 99 BOTTLES OF BEER C DAVE PITTS, DPITTS AT COZX.COM C DO 30 J = 1, 98 I = 100 - J WRITE OUTPUT TAPE 6, 100, I, I WRITE OUTPUT TAPE 6, 110 I = I - 1 IF (I - 1) 10, 10, 20 10 WRITE OUTPUT TAPE 6, 125, I GO TO 30 20 WRITE OUTPUT TAPE 6, 120, I 30 CONTINUE I = 1 WRITE OUTPUT TAPE 6, 105, I, I WRITE OUTPUT TAPE 6, 110 WRITE OUTPUT TAPE 6, 130 CALL EXIT C 100 FORMAT (1H0,I2,30H BOTTLES OF BEER ON THE WALL, 1,I2,16H BOTTLES OF BEER) 105 FORMAT (1H0,I2,29H BOTTLE OF BEER ON THE WALL, 1,I2,15H BOTTLE OF BEER) 110 FORMAT (33H TAKE ONE DOWN AND PASS IT AROUND) 120 FORMAT (1H ,I2,17H BOTTLES OF BEER.) 125 FORMAT (1H ,I2,16H BOTTLE OF BEER.) 130 FORMAT (20H NO BOTTLES OF BEER.) END
Download Source | Write Comment
Download Source | Write Comment
Add Comment
Please provide a value for the fields Name,
Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.
Please don't post large portions of code here! Use the form to submit new examples or updates instead!
Comments