#include using namespace std; int main() { char test; do{ cout << "Again (y/n): "; test=cin.get(); // Get enter key from the buffer. cin.get(); cout << endl << "You entered: " << test << endl; }while(test=='y'); return 0; }