If Else Statement

The ‘if else’ statement is a powerful decision-making statement and is used to control the flow of execution of statements. The general form of a simple ‘if else’ statement is : if(test expression) { statement-block; }else{ else-statement-block; } The ‘statement-block’ may be a single statement or a group of statements. If the test expression is … Read more…