We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cec5265 + fd9c3be commit 36da07fCopy full SHA for 36da07f
content/chapter 1/1.11-if-switch.md
@@ -172,17 +172,23 @@ package main
172
import "fmt"
173
174
func main() {
175
- a := 1
176
- b := 2
177
- c := 3
178
-
179
- if a > b && a > c {
180
- fmt.Println("Biggest is a")
181
- } else if b > a && b > c {
182
- fmt.Println("Biggest is b")
183
- } else {
184
- fmt.Println("Biggest is c")
185
- }
+ a := 1
+ b := 2
+ c := 3
+
+ if a > b {
+ if a > c {
+ fmt.Println("Biggest is a")
+ } else {
+ fmt.Println("Biggest is c")
+ }
186
+ if b > c {
187
+ fmt.Println("Biggest is b")
188
189
190
191
192
}
193
{{< /play >}}
194
0 commit comments