If else statements and switch statements overall can lead to the same conclusion in a program. They can both be used to accomplish the same objective. However, in an if else statement you need the curly brackets to add more than one variable in the else if part.
No comments:
Post a Comment