Write the syntax of if else if statements.
Answers
Answered by
15
if (expression) {
// codes
}
else {
// some other code
}
pls mark as brainliest answer
Answered by
23
Syntax for if else if statement:
if(conditions)
{
Statements
}
else if (conditions)
{
Statements
}
else if (conditions)
{
Statements
}
else
{
Statements
}
else is optional statement
if we don't put it then also it's ok
hope it helped you ☺️
Similar questions
Math,
4 months ago
English,
4 months ago
English,
9 months ago
Biology,
9 months ago
Social Sciences,
1 year ago