#include using namespace std; int main() { // The number of people in the room. int total=0; int value; // The maximum amount of people in the room. const int MAX=100; // Allow people in, while there is still room. while(total> value; // Prevent too many people from entering. if((total+value)<=MAX) total+=value; else cout << "The room cannot handle " << value << " more people." << endl; } cout << "There are " << total << " people in the room" << endl; return 0; }