def max1(a: Int, b: Int): Int = { if (a.>(b)) a; else b; } def max2(a: Int, b: Int) = if (a > b) a else b; println(max1(1, 2)); println(max2(1, 2));
Post a Comment
No comments:
Post a Comment