title: Counting Vowels using a For Loop
body: <p>Hey guys I haven't been able to find the proper guidance on this specific Vowel counting program so any help would be appreciated.</p>
  
  <p>This is my code so far, I'm not entirely sure where the error lies (probably in the for loop since I'm pretty green with them).  The vowelCount variable is not counting properly either.</p>
  
  <p>Thanks in advance.</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using std::cout;
  using std::cin;
  using std::endl;
  
  int main() {
      char letter(10);
      int vowelCount(0);
      cout &lt;&lt; "Enter a maximum of 10 characters: ";
      cin &gt;&gt; letter;
  
      for (int i = 0; i &lt;= letter; i++) {
          if (letter == 'a' || letter == 'A' ||
            letter == 'e' || letter == 'E' ||
            letter == 'i' || letter == 'I' ||
            letter == 'o' || letter == 'O' ||
            letter == 'u' || letter == 'U') {
              vowelCount++;
          }
      }
  
      cout &lt;&lt; "\nTotal number of vowels: " &lt;&lt; vowelCount;
      cout &lt;&lt; endl;
      return 0;
  }
  </code></pre>