Scanf Didn't work : <p>In my code second scanf doesn't work and couldn't read the character.
How can I solve that ?</p>

<pre><code>#include &lt;stdio.h&gt;
int main() {
int a, result;
// ***************** Menu *******************
printf("Hello !!! \n The Operations That This Calculator Can Do :");
printf("\n1. Simple Operations");
printf("\n2. Calculate The Biggest Number");
printf("\n3. Taylor expansion");
printf("\n4. Sum Digits Of a Number");
printf("\n5. Found The Prime Numbers Before The Number That You Entered");
printf("\nEnter The Number Of Operation That You Want : ");
scanf_s("%d", &amp;a);
if (a == 1){
    char ch;
    int num1, num2;
    printf("\n Please Enter Your Operation Like That (- 5 3 ) : ");
    scanf_s("%c", &amp;ch);
    if (ch == '-'){ scanf_s("%d", &amp;num1); scanf_s("%d", &amp;num2); result = num1 - num2; printf("\n &gt; %d", result); }
    if (ch == '+'){ scanf_s("%d", &amp;num1); scanf_s("%d", &amp;num2); result = num1 + num2; printf("\n &gt; %d", result); }  }  return 0; }
</code></pre>
