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
Hindi,
3 months ago
English,
3 months ago
History,
3 months ago
English,
7 months ago
Biology,
7 months ago
Social Sciences,
11 months ago
Social Sciences,
11 months ago