Computer Science, asked by tanvitamrakar1949, 1 year ago

Write genral syntax of if statement?


Anonymous: Are you bot ?
suniltty180: hii
suniltty180: hii'
Anonymous: hello

Answers

Answered by suniltty180
1

The syntax of if statement is:

if (testExpression)  

{

  // statement(s)

}

Answered by Hacket
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