Dang! You couldn’t score a perfect 100 because you failed one or more testcases

i solved my question and getting the correct output
but still show this error :

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

whats the mistake ,why i getting this error again and again ???
whats the solution??

hi @shristimalviya77_93a05e326061f1a7 u r printing twice the line with 2 stars so to correct it first for loop should go till i<n not i<=n

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.