Files
llgo/cl/_testpy/gcd/in.go

13 lines
237 B
Go
Raw Normal View History

2024-05-15 11:59:53 +08:00
package main
import (
2025-04-03 15:52:18 +08:00
"github.com/goplus/lib/c"
"github.com/goplus/lib/py"
"github.com/goplus/lib/py/math"
2024-05-15 11:59:53 +08:00
)
func main() {
x := math.Gcd(py.Long(60), py.Long(20), py.Long(25))
c.Printf(c.Str("gcd(60, 20, 25) = %d\n"), x.Long())
}