IK
Size: a a a
IK
F
Ф
IK
IK
АШ
return
всегда поможетВС
w
for {
select {
case <-ctx.Done():
return
}
}
F
АЛ
A
AM
DP
DP
MA
# command-line-arguments
./main.go:14:41: cannot use year % 4 == 0 (type untyped bool) as type int
package main
import (
"fmt"
)
func main() {
var year int
//var leap bool = (year%400 == 0) || (year%4 == 0 && year&&100 != 0)
fmt.Scan(&year)
if (year % 400 == 0) || (year % 4 == 0 && year&&100 != 0) {
fmt.Println("YES")
} else {
fmt.Println("NO")
}
}