Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A Tour of Go#10
package main
import (
"fmt"
)
func split(sum int) (x,y int){
x = sum % 10
y = sum - x
return
}
func main(){
fmt.Println(split(18));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment