using of if and else if in C++ code example
Example: if else program in c ++
if (condition) {
// block of code if condition is true
}
else {
// block of code if condition is false
}
if (condition) {
// block of code if condition is true
}
else {
// block of code if condition is false
}