the test cases are not getting passed in it and asking for negative input to check instead of using if else condition.
Manmohan loves pattern- 2
hello @lovely it is just the default statement of the coding blocks when test cases did not pass .
wait for sometime i will check your code and let you know the error .
1 Like
hey @lovely i have corrected your code and now it is passing all the test cases .
if you feel that your doubt is cleared please mark this doubt as resolved .
Happy Learning !!
but you have also used the same if else condition for checking negative input.then why my code was getting wrong test case
@lovely please see the first line of your output it is printing zero that was creating issue and that was the fault .
1 Like