if(condition)
statement;
- condition is a Boolean (that is, true or false) expression.
- If condition is true, then the statement is executed.
- If condition is false, then the statement is bypassed.
if(condition)
statement;
else
statement;
statement;The general form of the if using blocks of statements is
if(condition)
{
statement sequence
}
else
{
statement sequence
}
statement sequence} if-else-if ladder. It looks like this:
0 comments:
Post a Comment