For the following program, what is the value printed for "x1"? program test x1 = 1.0 x2 = 2.0 call calc (x2,x3) x1=2*x1 print *, x1,x2,x3 stop end subroutine calc(y1,y2) x1=y1**2 y2=x1+3 return end 1.0 2.0 3.0 4.0 5.0 Back to the 201 Homepage or Next Question
program test x1 = 1.0 x2 = 2.0 call calc (x2,x3) x1=2*x1 print *, x1,x2,x3 stop end subroutine calc(y1,y2) x1=y1**2 y2=x1+3 return end
2.0
3.0
4.0
5.0