Check if sum of numbers are equal

Member

braden_wiegand

by braden_wiegand , in category: Golang , a month ago

Check if sum of numbers are equal 😁

1
2
3
func sumEqual(u, v, w float64) bool {
	return (u+v == w) && (u == w-v) && (v == w-u)
}


Facebook Twitter LinkedIn Telegram Whatsapp Pocket

no answers