Below you will see a variadic function multiply() that can take many int type arguments, multiply them all together, and finally return the calculated total:
func multiply(nums ...int) int {
total := 1
for _, num := range nums {
total *= num
}
return total
}
You will see a generic function template for multiply() below. Your task is to write the additional code required to make multiply() a generic function that can only take int and float64 data types. Remember what you've learned about combined type constraints!