// Main3b.cpp // This holds a number game // Copyright (c) 1998 /////////////////////////// #include // For rand and srand #include // For time #include // For cin and cout #include // For tolower // The main function of our number game void main() { char Exit='N'; //Take a Y or N // Print a welcome cout<<"Welcome to the number game!"<>Answer; // Get an answer // infinite loop!! while(9>0) { // Check for bad input if((Answer > 100) || (Answer< 1)) { cout<<"I said between 1 and 100!"< Number) { cout<<"Too High!"<>Answer; } //See if the user wants to leave cout<<"Would you like to exit (Yes or No)? "; cin>>Exit; } }