Computer Science, asked by chauhanjai29201, 15 hours ago

what is the syntax of if else Statement in c++?​

Answers

Answered by ayesha000khan111
3

Answer:

if-else statement (C++)

Explanation:

An if-else statement controls conditional branching. Statements in the if-branch are executed only if the condition evaluates to a non-zero value (or true ). If the value of condition is nonzero, the following statement gets executed, and the statement following the optional else gets skipped

There are four different types of if statement in C++. These are:

Simple if Statement

if-else Statement

Nested if-else Statement

else-if Ladder

Similar questions