printf("would you like to check another time?(y/n)?\n");
fflush(stdin);
scanf("%c", &yesno);
while(yesno != 'n' && yesno != 'y')
{
printf("That was not a valid entry, please re-enter your choice.\n");
fflush(stdin);
scanf("%c", &yesno);
}
if (yesno == 'n') return 0; // program terminated here
// else it is automatically 'y' so your program continues here ...
additional
I just noticed another crucial failure that is affecting your snippet (and i imagine the next lines of codes also )
scanf("% c", &yesno); // will not read input
scanf("%c", &yesno); // will read input, there is no space between % and c, it is %c not % c