Hello again,

I was wondering if anyone might be able to tell me why the program won't exit the loop when response equals 'q' or 'Q'. When I select a Q or a q, the program just loops contiuously. Any help would be appreciated.

Thanks
Vireyda



[CODE]
do{
printf("Please select a transaction:\n");
printf("Cheque - C or c\nDeposit - D or d\nPrint - P or p\nQuit - Q or q\n");
fflush(stdin);
scanf("%c", &response);
switch(response)
{case'c':case'C':
Cheque(balance);
break;
case 'd': case'D':
Deposit(balance);
break;
case 'p': case'P':
Print(balance);
break;
case 'q': case'Q':
break;
default:
printf("That is an invalid selection. Please try again.\n ");
}
}while(response!='q'||response!='Q');
[\CODE]