title: c: How can I print only the highest numbered vowel?
body: <p>I just want to print highest numbered vowel.<br />
  For ex: <code>the cat is the cat.</code> In this sentence,</p>
  <pre><code>the vowel a is repeated 2 times  
  the vowel e is repeated 2 times  
  the vowel i is repeated 1 times  
  the vowel o is repeated 0 times  
  the vowel u is repeated 0 times  
  </code></pre>
  <p>I just want to see <code>a</code> and <code>e</code> in the console.</p>
  <p>Here is the code.</p>
  <pre><code>void vowel(char st2[]){
  
     char vow[]=&quot;aeiou&quot;; //vowel
     int i=0,j=0,count=0;
     while(vow[i]!='\0'){ //loop until sentence ends
         count=0;
         for(j=0;j&lt;strlen(st2);j++) 
         {
             if(st2[j]==vow[i]){ //increment the counter by one if one letter in the sentence is equal to the vowels
                 count++;                   
             }
         }
        
         printf(&quot;the vowel %c is repeated %d times\n&quot;,vow[i],count);
         i++;
     }
  }
  </code></pre>