For example:
for(int i = 0; i < 100; i += 2)
I could use a while loop or check if i % 2 == 0, but I was wondering if there wasn't a way to do it with the for loop. I could also use for(int i = 0; i < 50; i++)
and multiply i by 2, but that doesn't seem right either. I'm just wondering if there is a simple, straightforward way to do it.