+ 9

Code is not working,why?

I made a code to print the cirlce pattern but it is not giving the drsired output please tell me what's the problem. https://code.sololearn.com/c1O1z7RQryrW/?ref=app

12th Feb 2019, 2:32 AM
InfinityAJ
InfinityAJ - avatar
2 Respuestas
+ 7
I finally printed the circle pattern And I did it on my own Please check-out my code and do.upvote if you like it. https://code.sololearn.com/cAxB5N6khn05/?ref=app
16th Feb 2019, 5:18 PM
InfinityAJ
InfinityAJ - avatar
+ 2
I found an error Change arr[10][10] to at least arr[11][11] And in "in" and "out" function change " < 10" to "<=10" Your original code doesn't check all the places, such as x = 5, y = 10( (5 - 5) * (5 - 5) + (5 - 10) * (5 - 10) == 25) and x = 10, y = 5
12th Feb 2019, 8:08 AM
Дмитрий Мазыло
Дмитрий Мазыло - avatar