sweets sweets are shared evenly between kids children (at least 1). Write Share(sweets, kids) to return two numbers at once: how many each child gets, and how many are left over.
Share(17, 5)→(3, 2)Share(10, 2)→(5, 0)func Share(sweets, kids int) (int, int)package main
func Share(sweets, kids int) (int, int) {
// your code here: return each share and the leftover together
return 0, 0
}
Run tries the examples. When they look right, Submit.