A loop without if statements

I need assistance to make a for loop that prints out 1,4,7,11 by doing a cout of the counter only,and it has to have only those values, no if statements, I have no code to show as I am extremely confused,I have no clue how to start it either :( so if anyone is willing to help please make it simpler for me.
for( int i = 1, j = 4; ... should get you started. After that just increment up to 7 and 11 with one loop.
for (int i=1; i<=11; i+=3)

http://www.programming4beginners.com/tutorial/chapter12/for-loops-in-detail

Wait... is it 1,4,7,10 or 1,4,7,11?
for( int i = 1, j = 4; i < 5, j < 12; i += 6, j += 7)
for (int i=1; i<=11; i+= i<7? 3:4)
thank you! guys this helped me out a lot
Topic archived. No new replies allowed.