Answers for "go naked return"

Go
1

go naked return

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))
}
Posted by: Guest on January-12-2021

Browse Popular Code Answers by Language