Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tolstenko authored Oct 31, 2023
1 parent c876a81 commit f9b783b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions courses/intro/04-conditionals/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ switch (x) {
}
```

In this example, the output would be "x is 2" and "x is 3", as the break statement is omitted in the `case 2` block and the code in the `case 3` block is executed as a result.
In this example, the output would be "x is 2", "x is 3" and "x is not 1, 2, or 3", as the break statement is omitted in the `case 2` block and the code in the `case 3` block is executed as a result.

It is generally considered good practice to include a `break` statement at the end of each case in a `switch` statement to avoid unintended fallthrough. However, there may be cases where a fallthrough is desired behavior. In such cases, it is important to document the intended fallthrough in the code to make it clear to other programmers.

Expand Down Expand Up @@ -357,4 +357,4 @@ switch(c){
It is expected for you to be able to solve all questions before this one `1041` on beecrowd. Sort Beecrowd questions from the most solved to the least solved questions [here](https://www.beecrowd.com.br/judge/en/search?q=&sort=Problems.solved&direction=desc) in the link. If you don't, see [Troubleshooting](#troubleshooting). Don`t let your study pile up, this homework is just a small test, it is expected from you to do other questions on Beecrowd or any other tool such as leetcode.

# Troubleshooting
If you have problems here, start a [discussion](https://github.com/InfiniBrains/Awesome-GameDev-Resources/discussions). Nhis is publicly visible and not FERPA compliant. Use discussions in Canvas if you are enrolled in a class with me. Or visit the tutoring service.
If you have problems here, start a [discussion](https://github.com/InfiniBrains/Awesome-GameDev-Resources/discussions). Nhis is publicly visible and not FERPA compliant. Use discussions in Canvas if you are enrolled in a class with me. Or visit the tutoring service.

0 comments on commit f9b783b

Please sign in to comment.