Question: Fortran language For the following program, trace the output and write the results in exact FORMAT in the given table. PROGRAM Learn_Format_part_I IMPLICIT NONE INTEGER,
Fortran language For the following program, trace the output and write the results in exact FORMAT in the given table. PROGRAM Learn_Format_part_I IMPLICIT NONE INTEGER, PARAMETER:: MAXIMUM = 5 INTEGER:: I REAL:: a = 203.67, b = -84569.257 DO I = 1, MAXIMUM WRITE(*, "(lx, 216)") I, I*I END DO WRITE(*, "(lx, 2F12.7)") a, b END PROGRAM Learn_Format_part_I For the following FORMAT statement, write the exact output in the table given below. CHARACTER(LEN-5):: a - "12345" CHARACTER:: b = "?" WRITE(*, "(lx, A1, A)")a, b WRITE(*, "(lx, A3, A)") a, b WRITE(*, "(lx, A5, A)")a, b
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
