It isnt one test case please tell me where the error is
hello?? no answer???
@gaganpreetsachdev1 sorry i had written the reply but forgot to click on reply button.your code doesn’t looks like it is of the problem spiral printing anticlockwise, if it is please read input and output format carefully and then try to write code.
you didnt reply so i went ahead
first of all there is no need to count the numbers printed and compare it with total cause when you have printed all the numbers your while loop will automatically break,
but its ok if you used count but initialize variable total outside while loop so that total remain constant throughout whole program.
wow thank you so much
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.