Okay, so I've been learning objective c and I want to make a countdown starting with the number 22 and counting down to 2. I've successfully made a count up starting at 2 and going to 23, but when i try to use -- instead of ++ for the countdown, there's no output.
import
int main(int argc, const char * argv[]) {
@autoreleasepool {
int y;
for (y=23; y<3; y--)
{ NSLog(@"%i",y);}
}
return 0;
}