Added translation for do statements with exit
This commit is contained in:
parent
304873e6ca
commit
1be80bcbd3
5 changed files with 613 additions and 518 deletions
|
|
@ -1,5 +1,6 @@
|
|||
program test
|
||||
integer :: a, b, c, d, x, y, z, w
|
||||
real :: e, f
|
||||
a = 2 + 4 * (2 + 1) / 3 * b
|
||||
b = a
|
||||
if (a > b) then
|
||||
|
|
@ -11,4 +12,10 @@ elif (a > d) then
|
|||
else
|
||||
a = w
|
||||
end if
|
||||
do then
|
||||
if (a > b .or. c > b) then
|
||||
exit
|
||||
end if
|
||||
a = a + 1
|
||||
end do
|
||||
end program
|
||||
Loading…
Add table
Add a link
Reference in a new issue