You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
209 B
Bash
9 lines
209 B
Bash
5 years ago
|
$ go run if-else.go
|
||
|
7 is odd
|
||
|
8 is divisible by 4
|
||
|
9 has 1 digit
|
||
|
|
||
|
# There is no [ternary if](http://en.wikipedia.org/wiki/%3F:)
|
||
|
# in Go, so you'll need to use a full `if` statement even
|
||
|
# for basic conditions.
|