Hi

I'm new to this forum. I am currently a freshman at UCI and am in a beginning programming class-introduction to c.

I need to know how to write a for loop within a for loop without one of the loops breaking. For example my program changes based on whether a number is even or odd, so if the number is odd it needs to add, but when its even to subtract. So how can I do this without one of the loops breaking when its condition is not met. For example if the number is odd I use the ++ to make it even but it breaks instead of continuing.

Thanks in advance