source:
CIVL/mods/dev.civl.abc/examples/fortran/f77_standard/do.f
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 247 bytes | |
| Line | |
|---|---|
| 1 | c Fortran 77 Standard Sec. 11.10, DO_Statement |
| 2 | c Simple example |
| 3 | program p |
| 4 | implicit none |
| 5 | integer i, j |
| 6 | j = 0 |
| 7 | do 100, i=1,10 |
| 8 | j = j + 1 |
| 9 | 100 continue |
| 10 | c$ civl assert(j==10) |
| 11 | c$ civl assert(i==11) |
| 12 | end program |
Note:
See TracBrowser
for help on using the repository browser.
