An if Statement, within an if Statement is called nested if-else statement. In nested if-else structure the control enters into the inner if, only when the outer, condition is true.
Syntax
If(condition){
If(condition){
Statement}
else{
statement
}
else{
statement
}
Program
Write a program that inputs three numbers and display whether all numbers are equal or not by using nested if condition.
What is Compound Condition
A type of comparison in which more than one condition is evaluated is called a compound condition. In compound condition we use Three types of Logical operators.
1.OR Operators
2.AND Operators
3.NOT Operators
Programs
Write a program that inputs three numbers, and display the maximum number by using operators
Write a program that inputs a character and displays whether it is a vowel or not.