Microprocessors - Engineering

Q1:

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

A 12, 144, 73.2

B 15.0, 144.0, 73.2

C 15.0, 144.0, 73

D 15. 144. 73

ANS:A - 12, 144, 73.2

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