Question: what is the difference between if and if else blocks?
Answer: In if, the statements inside the if block executes if the expression is true. If the expression is false the next statement after the if block executes. In if else, the if block executes if the expression is true and if the expression is false the control is passed to the else block.