Fill in the blanks to create a method that returns the minimum of the two parameters. public int minFunc(int n1, int n2 | Sololearn: Learn to code for FREE!

+1

Fill in the blanks to create a method that returns the minimum of the two parameters. public int minFunc(int n1, int n2

Fill 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 Abdullah

6 Answers

New Answer

+1

public int minFunc(int n1, int n2) { int min; if (n1 > n2) min = n2; else min = n1; return min; }

0

public int minFunc(int n1, int n2) { int min; if (n1 > n2) min = n2; else min = n1; return min; }

-2

public int minFunc(int n1,int n2 ;){ int min; if(n1>n2) min=n2; else min=n1; return min; }

-2

https://code.sololearn.com/W7C57ghNgV20/?ref=app

-3

public int minFunc(int n1,int n2){ int min; if(n1>n2) min=n2; else min=n1; return min; }

-3

public int minFunc(int n1, int n2) { int min; if (n1 > n2) min =n2; else min = n1; return min; }