Skip to content

Commit 709d3a7

Browse files
Add hints and solution
1 parent 3e56229 commit 709d3a7

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/branching_logic/challenges.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,23 @@ void main() {
3838
IO.println("It is greater than 5");
3939
}
4040
```
41+
<details>
42+
<summary> Hint 1: </summary>
43+
<p>Else if statements only execute if previous condition is false.</p>
44+
</details>
45+
46+
<details>
47+
<summary> Hint 2: </summary>
48+
<p>If statements always execute.</p>
49+
</details>
50+
51+
<details>
52+
<summary> Solution </summary>
53+
<p><pre>
54+
It is greater than 1
55+
It is greater than 5
56+
</pre></p>
57+
</details>
4158

4259
## Challenge 4
4360

0 commit comments

Comments
 (0)