Problem 44859. Get the value 100

Created by Jesús Zambrano in Community

Knowing that 123-45-67+89=100, write a function that gives this result for any order of the digits in the input. Otherwise, the function should give 'NaN'.

Solution Stats

40.0% Correct | 60.0% Incorrect
Last solution submitted on Mar 22, 2019