Last active
June 25, 2018 11:38
-
-
Save ksakae1216/8214b2b3bcb0d5ba74eb7cc00cd5ff3a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package funcpkg | |
import "fmt" | |
// IfFunc if文のサンプルです | |
func IfFunc() { | |
num := 5 // 変数の宣言と値の設定をまとめて | |
if num < 10 { | |
fmt.Println("num is small!!") | |
} else if num > 10 { | |
fmt.Println("num is big!!") | |
} else { | |
fmt.Println("punic!!") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment