title: Check vowels occurence in a string
body: <p>This is the problem I'm trying to solve:</p>
  
  <p><strong>Input</strong>:<br>
  First line contains N, the size of the string.
  Second line contains the letters (only lowercase).</p>
  
  <p><strong>Output</strong>:<br>
  Print <code>YES</code> if all vowels are found in the string, <code>NO</code> otherwise.</p>
  
  <p><strong>Constraints</strong>:<br>
  The size of the string will not be greater than 10,000. <code>1 ≤ N ≤ 10000</code></p>
  
  <hr>
  
  <p>The following code I wrote is always showing <code>NO</code>.</p>
  
  <pre><code> #include &lt;stdio.h&gt;
   #include&lt;conio.h&gt;
  
   int main()
   {
     int a,b,c=0,d=0,e=0,f=0,g=0,i;
     char string[10000];
     scanf("%d",&amp;a);
     scanf("%s",string);
     for(i=0;i&lt;a;a++)
     {
       if(string[i]==('a'))
         c=1;
       if(string[i]==('e'))
         d=1;
       if(string[i]==('i'))
         e=1;
       if(string[i]==('o'))
         f=1;
       if(string[i]==('u'))
         g=1; 
     }
     if((c==1)&amp;&amp;(d==1)&amp;&amp;(e==1)&amp;&amp;(f==1)&amp;&amp;(g==1))
       printf("YES");
     else
       printf("NO");
     return 0;
     getch ();
   }
  </code></pre>