<pre> tag demonstration


int main()
{
   string word;
   int words = 0;
   int syllables = 0;
   int sentences = 0;
   bool more = true;
   cout << "Enter the text to be evaluated\n";

   while (more){  //boolean controls while loop
      cin >> word;
      if (cin.fail())  //control z will set cin to failed state when user is finished
         more = false;
      else{
	     //increment words, sentences, and syllables
         words++;
         syllables = syllables + count_syllables(word);
         if (is_sentence_end(word)) sentences++;
      }
   }
   cout << words << " words " << syllables << " syllables " << sentences << " sentences" << "\n";
   calc_flesch(words, syllables, sentences);
   return 0;
}