193k views
1 vote
Write a statement that declares a prototype for a function minMax, which has five parameters. The first three parameters are integers. The last two are parameters that are set by the function to the largest and smallest of the values of the first three parameters. The function does not return a value.

1 Answer

2 votes

Answer:

public static void minMax(int num1, int num2, int num3, int smallest, int largest){

}

Step-by-step explanation:

  • The function declaration above is in Java programming Language
  • The access modifier (public) is optional it could be private as well
  • static because it is found within same class as the main method
  • void because it will return no value
  • The parenthesis contain the parameters as specified by the question
User Quant Christo
by
5.4k points