Skip to content

Commit

Permalink
Merge pull request #364 from Mohammad252002/patch-4
Browse files Browse the repository at this point in the history
Update 1.11-if-switch.md
  • Loading branch information
Ja7ad authored Sep 5, 2024
2 parents eeedbdd + 11ad611 commit bf6c10d
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions content/chapter 1/1.11-if-switch.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,20 +198,16 @@ func main() {
a := 1
b := 2
c := 3
if a > b {
if a > c {
fmt.Println("Biggest is a")
} else if b > c {
fmt.Println("Biggest is b")
} else {
fmt.Println("Biggest is c")
}
} else if b > c {

if a > b && a > c {
fmt.Println("Biggest is a")
} else if b > a && b > c {
fmt.Println("Biggest is b")
} else {
fmt.Println("Biggest is c")
}
}

```

```shell
Expand Down

0 comments on commit bf6c10d

Please sign in to comment.