Also, if you don't want it to go over 100%

Code:
	if(pages > total)
	{
             cout << "Blah blah";
     } else {