source:
CIVL/mods/dev.civl.abc/examples/fortran/f77_standard/do_terminal_stmt.f
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 404 bytes | |
| Line | |
|---|---|
| 1 | c Fortran 77 Standard Sec. 11.10, DO_Statement |
| 2 | c Nested loop, separate terminal statements |
| 3 | program p |
| 4 | implicit none |
| 5 | integer i, j, ji, jo, k |
| 6 | ji = 0 |
| 7 | jo = 0 |
| 8 | do 100, i=1,3 |
| 9 | jo = jo + 1 |
| 10 | do 200, k=1,5 |
| 11 | ji = ji + 1 |
| 12 | 200 continue |
| 13 | 100 continue |
| 14 | c$ civl assert(ji==15) |
| 15 | c$ civl assert(jo==3) |
| 16 | c$ civl assert(i==4) |
| 17 | c$ civl assert(k==6) |
| 18 | end program |
Note:
See TracBrowser
for help on using the repository browser.
