2fishBLUEfish
2009-02-26 18:40:44 UTC
here's an example:
#include
main()
{
char ch;
do{
printf("blah\n");
ch=getchar();
} while(ch =='a');
getchar();
return 0;
}
basically i want to do the stuff in the loop while ch== 'a' or ch=='A', but when i run the program it terminates after two loops...so how can i fix it to only terminate when ch is assigned a value other than 'a' or 'A'