package main
import "fmt"
// x and y declared in the function body will
// be returned. you can still return any variables of
// your choice by explicitly mentioning them
func split(sum int) (x, y int) {
x = sum * 4 / 9
y = sum - x
// no variables!
return
}
func main() {
fmt.Println(split(13))
}
To embed this program on your website, copy the following code and paste it into your website's HTML: