#include using namespace std; /* run this program using the console pauser or add your own getch, system("pause") or input loop */ int main(int argc, char** argv) { //purpose:continue and break inside the loop int n1=0; do { cout<<"\ninput the number:1.continue 2.break 3.exit"<>n1; if(n1==1)continue; if(n1==2)break; }while(n1!=3); return 0; }