What are the different forms of If Statement?

Can you provide the different kinds of if statement ?
Add a comment

8 replies

"The if statement may be implemented in different forms : a) Simple if statement The general form is : if (test expression) { statement-block; } statement-x; b) The if---else statement The general form is : if(test expression) { true block statements; } else { false block statements; } statement-x; c) Nested if---else statement The general form is : if (test condition1) { if(test condition2) { statement-1; } else { statement-2; } statement-x; Source:"
Add a comment
"Unique type of whenever file in chemical substance? Along-series Concerns wide web > Wiki Tips > Different types > Engineering > Pcs > Internet education View Glide Argue Perfect result Merely one type: when () [usually ] normally claims may very well be person assertions, hindrances, clear deals, one example is. Representative: in case (my partner and i==one particular); various suitable for (and=a definite; T<=we; ++J) printf (""one==%deborah J==%deb\d"", my wife and i, J); ******************************************************************* I'd personally announce there could be 4 types of just in case claims: when in case-then-more-in the case stacked just in case move can be viewed the particular in the event financial statement too"
Add a comment