I'm having a problem with my program skipping over the 2nd scanf function. I am new to programming and am not sure why this is.
when I run this I do not get prompted for a 2nd input, it just skips right over it.
printf("Enter a simple arithmetic expression.\n");
success = scanf("%d%c%d\n",&m,&op,&n);
ans = m + n;
printf("What is the answer to %d%c%d?\n",m,op,n);
scanf(" %d\n" , &input);
if(ans == input)
printf("No, the correct answer is %d\n",ans);
ans = m - n;
ans = m * n;
ans = m / n;
ans = m % n;