- 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; }
8 ответов
+ 3
help me out
+ 1
Fill in the blanks to calculate the maximum of the parameters:
function max(a, b) {
(a >= b)
return
;
return b;
}
+ 1
Fill in the blanks to calculate the maximum of the parameters:
function max(a, b) {
if(a >= b)
return a;
else
return b;
}
0
public int minFunc(int n1, int n2
)
{
int min;
if (n1 > n2)
min =
n2;
else
min = n1;
return min;
}
0
thanks
0
function max(a, b) {
if(a >= b)
return a
;
else
return b;
- 1
{a:Int, b:Int a*b}
Please what would in between the blank space answer please thanks in advance
- 1
if
a
else