<CALL Example Program>
Program call_example Call shiki(1.0,3.0,2.0,x1,x2) Print *,x1,x2 End Program Intent(In) :: a,b,c Intent(Out) :: x1,x2 d = b**2 - 4.0*a*c If (d > 0.) Then x1 = (-b+Sqrt(d))/(2.0*a) x2 = (-b-Sqrt(d))/(2.0*a) End If
■ Execution Results
-1.0000000 -2.0000000