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

1 Answer

5 votes

Answer:

The expression is given below:

max(population1,population1)// calling the function max

Step-by-step explanation:

Following are the description of expression

  • As mention in the question population1 and population2 are the two integer parameter or we can say that they are the two variable.
  • To calling any function following are the syntax

functionname(argument list).

  • In this as already mention max is function name and population1 and population2 are the integer value so we have write max(population1,population1)

User Tan
by
4.7k points