Close to 10

Given 2 int values, return whichever value is nearest to the value 10, or return 0 in the event of a tie. [!java|scala]Note that Math.abs(n) returns the absolute value of a number.[/!] [!python]Note that math.fabs(n) returns the absolute value of a number. This function can only be used if you imported the math module.[/!]

Este exercício foi convertido para o PLM do excelente sítio de exercícios http://javabat.com/