From f9b783b366380bfa65ebce96ff1bc9eb2876a847 Mon Sep 17 00:00:00 2001 From: Alexandre Tolstenko Date: Tue, 31 Oct 2023 11:42:24 -0400 Subject: [PATCH] Update README.md --- courses/intro/04-conditionals/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/courses/intro/04-conditionals/README.md b/courses/intro/04-conditionals/README.md index db969b06..76e385ec 100644 --- a/courses/intro/04-conditionals/README.md +++ b/courses/intro/04-conditionals/README.md @@ -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. @@ -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. \ No newline at end of file +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.