0

Why my second half of the pattern is not printing??

https://code.sololearn.com/c5kq1ztUIene/?ref=app

19th Mar 2020, 6:07 AM
Shoan Ahmed
4 Answers
+ 4
Shoan Ahmed As you do coding same as debugging the code is also important so I just printed the value of m to check that it's going inside loop or not but I found it is not going because the value of m was in negative so m can't be greater than 0 so here m > 0 Condition was false.
19th Mar 2020, 7:14 AM
A͢J
A͢J - avatar
+ 1
On line no 30 m is coming -1, -2, -3 and so on. Here m should be positive.
19th Mar 2020, 6:21 AM
A͢J
A͢J - avatar
+ 1
Ohh thank you mam...😊😊... Now it is working... Can you please tell me how could you find the mistake by line??...🙂
19th Mar 2020, 7:03 AM
Shoan Ahmed
21st Jul 2020, 1:09 AM
shubham kumar
shubham kumar - avatar