Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 2 (Q.No. 28)
28.
Consider the following logical IF statement in FORTRAN 77

IF (SALT. GE. PEPPER) GOTO 11
GOTO 13

The above statement using arithmetic IF statement would be
IF (SALT - PEPPER) 11, 11, 13
IF (SALT - PEPPER) 13, 11, 13
IF (SALT - PEPPER) 13, 11, 11
IF (SALT - PEPPER) 11, 13, 13
Answer: Option
Explanation:

The given statement is logical IF statement. If SALT greater than or equal to PEPPER control goes to statement 11 otherwise control goes to statement 13 Same is true of arithmetic IF statement (c). If (SALT - PEPPER) is negative, control goes to statement 13 and otherwise control goes to statement 11.

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

Post your comments here:

Your comments will be displayed after verification.