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

13 lines
240 B
Go
Raw Normal View History

2024-05-15 11:59:53 +08:00
package main
import (
"github.com/goplus/llgo/c"
"github.com/goplus/llgo/py"
"github.com/goplus/llgo/py/math"
)
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())
}