Account for negative numbers

Dang! You couldn’t score a perfect 100 because you failed one or more testcases. This means that your program didn’t account for all input cases (did you account for negative numbers, for example?).

yes , this means that your code misses some corner cases maybe or the output format is wrong .debug it with different testcases

without knowing testcase how can i fix my code?