hi every1
im doing a do - while loop in c and to check that either 1, 2, 3 or 4 is entered and to keep on asking for those numbers till one of them is entered (do-while checks for that).
the thing is the loop keeps on repeating even if one of those numbers is eneterd
my condition is
but when i just check for one numberCode:while(gameCh != 1 || gameCh != 2 || gameCh != 3 || gameCh != 4);
eg
the do while loop works - it exits when i enter 1Code:while(gameCh != 1)
why doesnt it work for the four options?
could it be the multiple conditions in the first example?