Fill in the blanks to create a method that returns the minimum of the two parameters. public int minFunc(int n1, int n2
6 Answers
New AnswerFill in the blanks to create a method that returns the minimum of the two parameters. public int minFunc(int n1, int n2 { int min; if (n1 > n2) min = ; min = n1; min; }
3/22/2017 10:34:37 AM
Hashim Abdullah6 Answers
New Answerpublic int minFunc(int n1, int n2) { int min; if (n1 > n2) min = n2; else min = n1; return min; }
public int minFunc(int n1, int n2) { int min; if (n1 > n2) min = n2; else min = n1; return min; }
public int minFunc(int n1,int n2 ;){ int min; if(n1>n2) min=n2; else min=n1; return min; }
public int minFunc(int n1, int n2) { int min; if (n1 > n2) min =n2; else min = n1; return min; }
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message