RosettaCodeData/Task/Conditional-structures/Fortran/conditional-structures-1.f

8 lines
111 B
FortranFixed
Raw Permalink Normal View History

2013-04-10 16:57:12 -07:00
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