My code isn't allowing me to input a character after I input a number.
Code:#include <stdio.h>
#include <string.h>
int main (void)
{
char choice;
int num;
do
{
printf("enter a number: \n");
scanf("%d",&num);
printf("enter another? \n");
scanf("%c",&choice);
}while (choice!='y'||choice!='Y');
return 0;
}