Computer Science, asked by rithikashrisakthi4, 1 month ago

give the syntax of if statement in c++​

Answers

Answered by kajalpal1975
0

Answer:

Syntax of if:-

if (condition) {

statements....

}

Example,

if (age>=18) {

std::cout<<"You are eligible";

}

Explanation:

Please mark me as the brainliest.

Answered by Akshara6c
0

Answer:

this is the answer

Explanation:

if(boolean_expression 1) {

  // Executes when the boolean expression 1 is true

} else if( boolean_expression 2) {

  // Executes when the boolean expression 2 is true

} else if( boolean_expression 3) {

  // Executes when the boolean expression 3 is true

} else {

  // executes when the none of the above condition is true.

}

Similar questions