The code below works for the first question (first half of the code), the program then proceeds to the second questin, but it never stops to await the answer.
I can't seem to figure out what I'm doing wrong?
Thx
#include <stdio.h>
using namespace std;
char answer;
int main(int argc, char *argv[])
{
//ask if there are new patients
printf ("if new patients type 'y'.\n");
scanf ("%c", &answer);
if (answer == 'y' || answer == 'Y')
printf("something\n");
// ask if they want to see the list of patients
printf ("wanna see list: type 'y'.\n");
scanf ("%c", &answer);
if (answer == 'y' || answer == 'Y')
printf("something else\n");
return 0;
}