Code:
if(counter == 10)
    {
         cout << "\n\n You're Not Too Bright Yourself Now Are You ?\n Are You Sure You're Not Mr. Hell ?\n\n It Was: "; cout<< iqanswer; cout << " Dumb-*** !\n\n";
     break;
     }
Use a boolean variable to exit from loop.