流程控制

if…else

 1package main
 2
 3import "fmt"
 4
 5func main() {
 6    var number int = 5
 7	if number += 4; 10 > number {
 8		number :=0
 9		number += 3
10		fmt.Print(number)
11	} else if 10 < number {
12		number -= 2
13		fmt.Print(number)
14	}
15	fmt.Println(number)
16}
17
18// 39