#include <iostream>using namespace std; while(5){cout<<"Is your number "<<x<<" ?\n[yes/no]\n";gets(ans);if(strcmpi(ans,"yes")==0)break;}
Standard input is empty
prog.cpp:4:1: error: expected unqualified-id before 'while' while(5){ ^
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!