I have a for loop to output a table
for(int i=0;i<=table;i++)

now I want to stop if i=12 and print out some data

then continue for rest of the count of i.

thanks for the help.
Who is Participating?
nietodConnect With a Mentor Commented:
for (int i=0;i<=table;i++)
     if (i == 12)
        cout << "i == 12!";
    // other stuff

let me know if you have questions.
strmtrprAuthor Commented:
I forgot the == I tried it with i=12;

thanks for the help.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.