C++ Else :
The else used to specify a block of code to be executed, if the same condition is false.
The Syntax of else statement is as follows:
if (condition) {
// if condition is true then block of code to be executed
} else{
// if condition is false then block of code to be executed
}
Example :
Output :