Computer Science, asked by magiccreator100, 1 year ago

Write the syntax of if and if else statements.

Answers

Answered by hermoinegranger7
1
1)if (expression)
{
// statements
}
2)if (expression)
{
// codes
} else
{ // some other code
}
Answered by Tabassumnt3838
0

If syntax:

If

{

Statement A;

}


Statement B;



If else statement :

Syntax :

{

StatementA;

}

else

{

StatementB;

}

StatementC;



Similar questions