167k views
2 votes
max is a function that expects two int parameters and returns the value of the larger one. Two variables, population1 and population2, have already been defined and associated with int values. Write an expression (not a statement!) whose value is the larger of population1 and population2 by calling max.

1 Answer

4 votes

Answer:

max(population1, population2)

Step-by-step explanation:

The function max has already been defined, it takes two parameters and it return the larger of the two parameters.

So, calling max(population1, population2) will return the larger between population1 and population2.

population1 and population2 have already been defined and associated with int values.

User Zexks Marquise
by
8.3k points