#include #include using namespace std; int main () { string name; char resp; cout << "Enter your Name: " ; cin >> name; cout << "You Entered " << name << " as your name" << endl; cout << "Is this correct? (y,n): " ; cin >> resp; if (('y' == resp) || ('Y' == resp)) { cout << "Contratulations, you know how to type your name" << endl; } else { if (('n' == resp) || ('N' == resp) ) { cout << "Learn how to type your name " << endl; cout << "Please re-enter your name, (Last Chance): " ; cin >> name; cout << "You Entered " << name << " as your name" << endl; } else { cout << "Learn to read, I ask for a Y or an N" << endl; } } cout << "Exiting the Program." << endl; }