Question: what is the difference between if then and if then else structures?
Answer: if..then statement is used to make a decision when there is only two options. ... Similarly, if you have to write a program that have to choose from three options then we use if..then..else statement. But, if you have to write a program that have more than three option then we use if..then..else if..else statement.