RosettaCodeData/Task/Conditional-structures/Fortran/conditional-structures-1.f
2023-07-01 13:44:08 -04:00

7 lines
111 B
Forth

if ( a .gt. 20.0 ) then
q = q + a**2
else if ( a .ge. 0.0 ) then
q = q + 2*a**3
else
q = q - a
end if