Skip to content

Commit

Permalink
Update 1.11-if-switch.md
Browse files Browse the repository at this point in the history
کد از لحاظ منطقی مشکل داشت
  • Loading branch information
Mohammad252002 authored Aug 17, 2024
1 parent 4605a08 commit 11ad611
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 11ad611

Please sign in to comment.