title: Char to ASCII in C
body: <p>I have a homework and I am trying to make this recursion program, but I am wrong somewhere. Tried to contact my teacher but she is out of the country and I feel lost. </p>
  
  <p>About the program:</p>
  
  <p>The user inputs char symbols until he enters '.' and then the program should print on the screen the symbols that were entered, but only if their ASCII code is even. </p>
  
  <p>I did what I had in mind, but somewhere I am going wrong. </p>
  
  <p>The problem is that when I enter  <code>"10 12 14 33 11 55 7 222 44 2 ."</code> I get printed <code>"2 44 222          4 2 0"</code>. I dont understand am I suppoused to enter numbers since we are talkingabout symbols and second of all why is it printing <code>"0 2 4"</code> instead of <code>"10 12 14"</code>?</p>
  
  <p>I am really really confused right now. My hope is in you!</p>
  
  <p>Here's my code:</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  
  void ReversePrint()
  {
     char ch='A';
     scanf("%c",&amp;ch);
     if(ch!='.')
     {
        ReversePrint();
        if (ch%2==0)
        {
           printf("%c",ch);
        }
        else
        {
           printf("");
        }
     }
  }
  int main()
  {
     printf("ENTER SYMBOLS:\n");
     ReversePrint();
     printf("\n");
     system("Pause");
     return 0;
  }
  </code></pre>