I am unable to understand why the test cases are failing?
What's wrong with the code?
please reply to my problem?
hey @rishabhtanishaq ,
can you please share your code , so that i can understand too , what problem your code is facing in succesfull submission .
Thank You
.
yes please have a look at it
kindly share this by either uploading on github or drive.
can u see it now?are u there?
where have you shared it , where will i see ??
have u seen it now? please do tell the mistake?
please look into it ASAP?
hey @rishabhtanishaq ,
sorry to be late ,
but the problem was , your code was passing test case 1 but in the further cases it lacked to get the correct input.
it was taking only the first input value and not the others and hence it fails.
You just need to change it a bit.
c=0
while True:
i = int(input())
c=c+i
if c<0:
break
print(i)
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.