I am making a Hotel Check In Form in C++ , whick ask the user to insert No. of Guests ..and I have a condition i.e. Max 6 guests per room. So, if the user enter more than 6 guests the No. of Room changes to 2. Or more than 12 guests the No. of room change to 3.
What I have tried:
I am not able to get the logic.