Chained if statements in which only one of the statements can be correct should include 'else'. What you've written is very similar to a switch statement with no breaks and a default result.
Over...
Type: Posts; User: GregBrannon
Chained if statements in which only one of the statements can be correct should include 'else'. What you've written is very similar to a switch statement with no breaks and a default result.
Over...
The reason the problem was presented without the brackets was to test your understanding and suck you into making the mistake you made. The results are exactly the same. You can answer your...
Welcome to the forum! Please read this topic to learn how to post code correctly and other useful info for new members.
Not exactly. In this case, the next if statement is only executed if the...