Write genral syntax of if statement?
Anonymous:
Are you bot ?
Answers
Answered by
1
The syntax of if statement is:
if (testExpression)
{
// statement(s)
}
Answered by
0
if(boolean_expression) {
/* statement(s) will execute if the boolean expression is true */
} else {
/* statement(s) will execute if the boolean expression is false */
Example-
if ( i > 0 )
y = x / i;
else
{
x = i;
y = f( x );
Thanks for asking
}
}
Similar questions