source:
CIVL/mods/dev.civl.abc/examples/fortran/f77_standard/precedence.f
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 229 bytes | |
| Line | |
|---|---|
| 1 | program p |
| 2 | implicit none |
| 3 | double precision res |
| 4 | |
| 5 | res = -2**2 |
| 6 | c$ civl assert(res .eq. -4) |
| 7 | |
| 8 | res = -5+4*3**2 |
| 9 | c$ civl assert(res .eq. 31) |
| 10 | |
| 11 | res = 2**3**2 |
| 12 | c$ civl assert(res .eq. 512) |
| 13 | end program |
Note:
See TracBrowser
for help on using the repository browser.
