Question: What is the output of following FORTRAN program? PROGRAM TEST k = 5 m = 0 DO 20 i = 1, 5 DO 10 j

What is the output of following FORTRAN program? PROGRAM TEST k = 5 m = 0 DO 20 i = 1, 5 DO 10 j = 1, k k = k + 1 m = m + i + k write (*, *) m 10 CONTINUE 20 CONTINUE END You may recall that the loop variable in a FORTRAN do-loop cannot be changed in the loop, but the parameters can be changed. The parameters are evaluated only once, and their update does not affect loop control. Also, the rocket failure legend at NASA mentioned in the tutorial will help you with answering this
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
