if else 语句赋值

val c = if (a>b) a else (a+b)/2