Example of nested if statement, COBOL Programming

Example of Nested if statement:

Illustration:

Consider the following sentence

863_nested if elese statement.png

The nested IF sentence holds two IFs and one ELSE. The IF-ELSE couple has been marked by the number 1 within a circle. The IF marked with 2 within the circle is alone IF without any ELSE. Now it can be simply seen that the above sentence is equal to the following flow chart.

695_nested if elese statement1.png

 

Posted Date: 10/17/2012 2:05:54 AM | Location : United States







Related Discussions:- Example of nested if statement, Assignment Help, Ask Question on Example of nested if statement, Get Answer, Expert's Help, Example of nested if statement Discussions

Write discussion on Example of nested if statement
Your posts are moderated
Related Questions
RULES FOR INDEXED TABLES: The rules of indexing a table with an INDEXED phrase are as shown below: (1) If indexing is completed for any one level of a table, then indexing

calculate simple interest

PERFORM WITH TIMES OPTION: The format of a PERFORM TIMES statement is as shown below: Illustration:   A)  Perform the para-2 5 times. In this situation the specifie

Concept of a two-dimensional table: Concept of a two-dimensional table can be easily extended to tables having three or more dimensions. The Handling of tables up to three dim

Illustration of Divide verb: (a) DIVIDE 5 INTO A. If the value of A is 20, then after execution of this statement the value of A will be 4. The older value of A will be los

ROUNDED OPTION: Let us consider the DATA DIVISION entries which are as shown below: Now, subsequent to the execution of the statement ADD A B GIVING C, the C will hold

REWRITE statement: The REWRITE statement is used to update the existing record in a disk file. The normal format is as shown below: REWRIE  record-name  [  FROM      ide

INPUT AND OUTPUT PROCEDURE IN SORT STATEMENT: The common format of the SORT statement can write as shown below: The format of the RELEASE statement is as shown be

Rules for apply for the condition name: The rules below apply for the condition name. (i) The Condition names should be explained at level 88. The level number starts in ma

Illustration of the abbreviation: A few illustration of the abbreviation are given below: Illustration: The compound condition  AMOUNT GREATER THAN 499 AND AMOUNT L