while((a!=1)||(a!=2)||(a!=3))
This condition will always be true, since if a == 1 of those numbers, it does not equal the other two. You should use && instead of ||. That way, if "a" equals...
Type: Posts; User: MK27
while((a!=1)||(a!=2)||(a!=3))
This condition will always be true, since if a == 1 of those numbers, it does not equal the other two. You should use && instead of ||. That way, if "a" equals...