mirror of
https://github.com/github/codeql.git
synced 2025-12-20 18:56:32 +01:00
14 lines
153 B
Go
14 lines
153 B
Go
package main
|
|
|
|
func mul(xs []int) int {
|
|
res := 1
|
|
for i := 0; i < len(xs); i++ {
|
|
x := xs[i]
|
|
res *= x
|
|
if res == 0 {
|
|
}
|
|
return 0
|
|
}
|
|
return res
|
|
}
|