25) Write the syntax of IF...
THEN...ENDIF statement.
please tell me the answer I will mark as brain list answer
Answers
Answer:
There are several syndromes of albinism associated with systemic pathology. These include Chediak-Higashi Syndrome (CHS), Hermansky-Pudlack Syndrome (HPS), Griscelli Syndrome (GS), Elejalde Syndrome (ES), and Cross-McKusick-Breen Syndrome (CMBS).
Answer:
Fortran evaluates logical-expression-1 and if the result is .TRUE., statements-1 is executed followed by the statement after END IF. If logical-expression-1 is .FALSE., Fortran evaluates logical-expression-2 and executes statements-2 and so on. In general, if logical-expression-n is .TRUE., statements-n is executed followed by the statement after END IF; otherwise, Fortran continues to evaluate the next logical expression.
If all logical expressions are .FALSE. and if ELSE is there, Fortran executes the statements-ELSE; otherwise, Fortran executes the statement after the END IF.
Note that the statements in the THEN section, ELSE IF section, and ELSE section can be another IF statement.
Examples
Suppose we need a program segment to read a number x and display its sign. More precisely, if x is positive, a + is displayed; if x is negative, a - is displayed; otherwise, a 0 is displayed. Here is a possible solution using IF-THEN-ELSE IF-END IF: