Computer Science, asked by Anonymous, 7 months ago

Write the syntax of if else if statements.

Answers

Answered by Anonymous
15

if (expression) {

  // codes

}

else {

 // some other code

}

pls mark as brainliest answer

Answered by Anonymous
23

\huge{\underline {\underline {\mathfrak{Answer:}}}}

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