Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 2 (Q.No. 36)
36.
If J = 12 and X = 24.4 the result of the following FORTRAN 77 program will be

READ *, J, X
K = J ** 2
Z = 3 * X
Print *, J, K, Z
12, 144, 73.2
15.0, 144.0, 73.2
15.0, 144.0, 73
15. 144. 73
Answer: Option
Explanation:

J = 12, K = 122 = 144, Z = 3 x 24.4 = 73.2 In the result J and K will be without decimal point.

Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.