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!
New course! Every coder should learn Generative AI!
Try a free lesson
- 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 = n2 ; min = n1; min; }

4th Jul 2017, 8:08 AM
Walter Mugo
Walter Mugo - avatar
8 Answers
+ 3
help me out
4th Jul 2017, 8:09 AM
Walter Mugo
Walter Mugo - avatar
+ 1
Fill in the blanks to calculate the maximum of the parameters: function max(a, b) { (a >= b) return ; return b; }
27th Aug 2019, 1:28 PM
Sahal Mahmed Sakil Patel
Sahal Mahmed Sakil Patel  - avatar
+ 1
Fill in the blanks to calculate the maximum of the parameters: function max(a, b) { if(a >= b) return a; else return b; }
30th Apr 2021, 3:39 AM
Luis Melo
Luis Melo - avatar
0
public int minFunc(int n1, int n2 ) { int min; if (n1 > n2) min = n2; else min = n1; return min; }
4th Jul 2017, 9:45 AM
Patrick
Patrick - avatar
0
thanks
5th Jul 2017, 10:25 AM
Walter Mugo
Walter Mugo - avatar
0
function max(a, b) { if(a >= b) return a ; else return b;
5th Jan 2020, 5:12 PM
Samuel Danquah Bamfo
Samuel Danquah Bamfo - avatar
- 1
{a:Int, b:Int a*b} Please what would in between the blank space answer please thanks in advance
12th Jun 2021, 1:51 PM
Felix Oseh
Felix Oseh - avatar
- 1
if a else
11th Aug 2021, 2:55 PM
W.G.A.C.Nandasena
W.G.A.C.Nandasena - avatar