I must make a confession; I was not terribly efficient with my time this week. I didn't want to code at all! We just took a test! That will hopefully change next week.
Regardless of the disinterestedness, I did manage to learn slightly about switches. If else if I already kind of knew; it was rather obvious and straightforward. Switches, however, I find harder to understand, especially with the cases. What if the case is not a nice integer but...well, a case? Is it not applicable then, and you use if else if, or can you make it that way? For instance, can you have a case >20?
Hopefully this will be addressable tomorrow.
No comments:
Post a Comment