dimanche 26 février 2017

can't go back into the if loop even the value of q is not zero

The program flow goes out of the loop even value of q is not zero.

i=5;
q=1;
    if (q!=0)
{
    r = i%2;
    q = i/2;
    [arr addObject:[NSNumber numberWithInt:q]];
    i=q;
}

}

Aucun commentaire:

Enregistrer un commentaire