|
-
Sep 20th, 2002, 11:07 PM
#1
Thread Starter
Lively Member
Multiple conditons in a while loop
cType = getche();
while (cType != 'C' || 'c' || 'I' || 'i' || 'A' || 'a')
{
printf ("Code not valid");
printf ("\nPlease re-enter a type (I, C, or A): ");
}
how can i put multiple conditions into a while loop? currently, the loop always comes back false.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|