update go/l4.go
This commit is contained in:
parent
55225686f1
commit
dc40ebd598
2 changed files with 3 additions and 2 deletions
5
go/l4.go
5
go/l4.go
|
|
@ -5,13 +5,14 @@ import (
|
|||
)
|
||||
|
||||
func logic() string {
|
||||
var phrase string
|
||||
fmt.Println("Твой возраст")
|
||||
var x int
|
||||
_, err := fmt.Scan(&x)
|
||||
if err != nil {
|
||||
return "еблан"
|
||||
phrase = "еблан"
|
||||
return phrase
|
||||
}
|
||||
var phrase string
|
||||
switch {
|
||||
case x < 0:
|
||||
phrase = "Ты еще не родился"
|
||||
|
|
|
|||
BIN
go/output/l4
BIN
go/output/l4
Binary file not shown.
Loading…
Reference in a new issue