Hi all,
I completed the exercise but I'm wondering why we are using the text "m2" to find the minimum?
public class Solution {
public static int min(int a, int b) {
int m2;
if (a < b)
m2 = a;
else
m2 = b;
return m2;
}
hidden #10484120
Level 13
Why m2?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
DeCC
15 July 2019, 13:32
You don't have to declare anything. If a is less than b, return a, else return b ;)
+2