I just took a look.
The second if(b= 0) in your box should be = =
Secondly, the previous for will definitely be executed, and in the execution, as long as the conditions are met for the first time, B will be assigned 1.
For the rest of the code, the value of b is always 1. How can b == 0 be satisfied?