Electronics and Communication Engineering - Microprocessors - Discussion

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

IF (SALT. LE. PEPPER) 11
GO TO 13

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

The logical IF statement means that IF SALT is less than or equal to PEPPER, control goes to statement 11 otherwise (i.e., SALT greater than PEPPER), control goes to 13 Same is true of arithmetic IF statement (a).

Discussion:
1 comments Page 1 of 1.

Bondavvsdgraja said:   6 years ago
Can anyone explain me, clearly?

Post your comments here:

Your comments will be displayed after verification.