• Simple if Statement

if(condition){

Statement A;

Statement B;

…………………….

………………………

…………………….

Statement n;

}

  • Compound if Statement

if( condition){

Statements A;

statements B; [true part]

………………………

………………………

………………………

Statements n;

}

else

{

Statements A;

statements B; [false part]

……………………….

……………………….

………………………..

Statements n;

}

Posted in c++

Leave a Reply

Your email address will not be published. Required fields are marked *