If n is -20, i=0 will never be less than n.
Interestingly, since I didnít want to read past the first few posts, I did not realize that I played this game five years ago, and accidentally found (again) all three solutions. Again without timing; about 10 minutes, I guess.
Do I get a double bonus?
i is DEcremented, not INcremented. So i will= -1, -2, -3...etc until it passes -20.
for (i=0; i+n; i--)
for (i=0; i<n; n--)
for (i=0;-i<n; i--)
for (i=0;~i<n; i--)
Neat question, not a very good introduction. Once someone finds three, they think they are a genius. Did someone find another?
By the way, the unary NOT is replacing a space (" ") just like the negative symbol