Code did not pass

my code is same as the editorial code (just the varriable names are different ) so why does it not pass the test cases.

no its not the same .you are not following the output format ,it needs spaces bw all the nos and stars .and Enter a no.= isnt asked for either
corrected code:


please mark your doubt as resolved :slight_smile:

but the code was working on eclipsce properly

your code isnt wrong ,just to pass the test cases on hackerblocks or any other hiring contest etc u give online, you need to strictly follow the output format