RosettaCodeData/Task/Conditional-structures/Fortran/conditional-structures-1.f
Ingy döt Net 764da6cbbb CDE
2013-04-10 16:57:12 -07: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