Challenges fundamental question - help ramu

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???

hi @pushkar24sharma here
image
You have accidentally used + sign instead, change it and it should pass all the test cases.

1 Like

ohk thank you @Ishitagambhir maam. now it is working.
:smiley: :smile:

@pushkar24sharma please mark it as resolved :slight_smile: