web analytics

Write down about the if-else statement

The if-else statement : The general form of the if….else statement is as follows,

if (test expression){
true-block statements;
False-block statements;
Here, if the test expression is true, then the true-block statements will be executed, otherwise the false-block statements will be executed. In either case, either true block or false block statements will be executed, not both. The general form can be shown by the following flowchart. 

Please follow and like us:
Pin Share
Follow by Email
Scroll to Top