Skip to content

Instantly share code, notes, and snippets.

@xnox
Created December 25, 2013 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xnox/8124749 to your computer and use it in GitHub Desktop.
Save xnox/8124749 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func split(sum int) (x, y int) {
x = sum * 4 / 9
y = sum - x
return
}
func main() {
fmt.Println(split(17))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment