Pokémon's power

Report a typo

We have a simple formula to calculate the power of Pokémon:

power=(attack×defense)+stamina2power ={ {{(attack \times defense)} + stamina} \over 2}

Suppose you have implemented the above formula in a Go program within the calculatePower() function.

Select the suitable functions you could use to decompose the calculatePower() function. Remember, that the purpose of function decomposition is to split a function into smaller ones.

Select one or more options from the list
___

Create a free account to access the full topic