Write the syntax of if and if else statements.
Answers
Answered by
1
1)if (expression)
{
// statements
}
2)if (expression)
{
// codes
} else
{ // some other code
}
{
// statements
}
2)if (expression)
{
// codes
} else
{ // some other code
}
Answered by
0
If syntax:
If
{
Statement A;
}
Statement B;
If else statement :
Syntax :
{
StatementA;
}
else
{
StatementB;
}
StatementC;
Similar questions