title: Program that counts Uppercase and Lowercase letters in a String in C
body: <p>so I want to make a code where you can find the number of upper and lowercase letters in a string (no spaces)
  So I want something like this:</p>
  
  <pre><code>input:
  HEllO
  Output:
  2 3
  </code></pre>
  
  <p>So what I have of code is this:</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  int main() {
  int upper = 0, lower = 0;
  char ch[80];
  int i;
  
  printf("\nEnter The String : ");
  gets(ch);
  
  i = 0;
  while (ch[i] != '') {
    if (ch[i] &gt;= 'A' &amp;&amp; ch[i] &lt;= 'Z')
       upper++;
    if (ch[i] &gt;= 'a' &amp;&amp; ch[i] &lt;= 'z')
       lower++;
    i++;
    }
  
    printf("%d %d", upper, lower);
  
  
    return (0);
    }
  </code></pre>
  
  <p>There is a problem with the code, but I cannot find the mistake. Can someone please fix it? Thanks.</p>