Question: what is the difference between a single if statement and a nested if statement?
Answer: If condition is true execute if block otherwise execute else block. In the above program we use only one if else and it has only one condition. ... If else and nested if else are condition check statements. Nested if has two or more conditions in it.