2019-10-16 11:18:44 +03:00

9 lines
284 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

$ go run if-else.go
7 is odd
8 is divisible by 4
9 has 1 digit
# В Go нет [тернарного if](http://en.wikipedia.org/wiki/%3F:),
# поэтому вам нужно использовать полный оператор if
# даже для базовых условий.