Using multiple logical operator in C not comparing correctly

visit shbcf.ru