title: Something wrong with my code. It doesn't print out the even characters in my string
body: <p>I managed to write a code, but it isn't giving me the desired output. I've tried running it via the debugger of cs50, but it shows my variable <code>i</code> to be the value <code>4198496</code>. I don't understand why, since I declared <code>i</code> to be 0. Can someone point me out why it isn't printing out the even characters?</p>
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;cs50.h&gt;
  #include &lt;string.h&gt;
  
  int main(void){
  
      string input = get_string(&quot;Say something: &quot;);
      int n = strlen(input);
  
      for (int i = 0; i &lt; n; i ++){
      
          if (input[i] % 2 == 0)
      
          printf(&quot;%c&quot;, input[i]);
      }
  }
  </code></pre>