Question: what is the difference between nested if else and else if ladder?
Answer: The if statement evaluates the code if the condition is true but what if the condition is not true, here comes the else statement. It tells the code what to do when the if condition is false. The if-else-if ladder statement executes one condition from multiple statements.