Wednesday, March 14, 2012

OPERATING CONDITIONS C++ LANGUAGE : IF STATEMENTS

If statements have meaning "if the condition is true, then (statement) command will be done and if it does not qualify then the program will ignored ".
From the above meaning, it can be seen as a flow chart on the image 1. 
Flowchart If.

(Image 1)

The general form of the if statement :


Writing of the conditions should be in parenthesis (......) and the relation of expression and the statement can be either a single statement, compound statement  or a  if (condition) statement; an empty statement, if the use if followed by a compound statement, form of writing as follows:

The general form of the compound in the if statement :


0 comments:

Post a Comment