sir i got 83.33 marks in this question. according to me my code is correct and also it is giving me the correct output.
but still after submission of my code it is showing that it is wrong and it is not accepted.
it shows there -
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?).
How can i improve my code???
what have i done wrong???

