Q2/What is the output of the following programs ? 1- REAL :: C, B, A READ(*,*) C, B, A IF (A.GT.B) THEN PRINT*, A-2 IF (B.LT.C) THEN PRINT*, B+11 ELSE PRINT*, C-2 ENDIF ELSE PRINT*, A+4 ENDIF PRINT*,...


Q2/What is the output of the following programs ?<br>1-<br>REAL :: C, B, A<br>READ(*,*) C, B, A<br>IF (A.GT.B) THEN<br>PRINT*, A-2<br>IF (B.LT.C) THEN<br>PRINT*, B+11<br>ELSE<br>PRINT*, C-2<br>ENDIF<br>ELSE<br>PRINT*, A+4<br>ENDIF<br>PRINT*, A*2, B*2, C*2<br>END<br>Assume the input for the program is:<br>0.8<br>0.5<br>0.6<br>

Extracted text: Q2/What is the output of the following programs ? 1- REAL :: C, B, A READ(*,*) C, B, A IF (A.GT.B) THEN PRINT*, A-2 IF (B.LT.C) THEN PRINT*, B+11 ELSE PRINT*, C-2 ENDIF ELSE PRINT*, A+4 ENDIF PRINT*, A*2, B*2, C*2 END Assume the input for the program is: 0.8 0.5 0.6

Jun 03, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here