Initial commit
This commit is contained in:
24
11-if/02-if-statement/03-else-if-branch/02/main.go
Normal file
24
11-if/02-if-statement/03-else-if-branch/02/main.go
Normal file
@@ -0,0 +1,24 @@
|
||||
// For more tutorials: https://blog.learngoprogramming.com
|
||||
//
|
||||
// Copyright © 2018 Inanc Gumus
|
||||
// Learn Go Programming Course
|
||||
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
|
||||
//
|
||||
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
score := 2
|
||||
|
||||
if score > 3 {
|
||||
fmt.Println("good")
|
||||
} else if score == 3 {
|
||||
fmt.Println("on the edge")
|
||||
} else if score == 2 {
|
||||
fmt.Println("meh...")
|
||||
} else {
|
||||
fmt.Println("low")
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user