Let p,q,r denote the statements ”It is raining”, “It is cold”, and “It is pleasant”, respectively. Then the statement “It is not raining and it is pleasant, and it is not pleasant only if it is raining and it is cold” is represented by?
my answer: (¬p∧r)∨((p∧q)→¬r) this question was from one of the entrance exam GATE, there answer key shows (¬p∧r)∧(¬r→(p∧q)) as answer.
it would helpful for me if anyone can point out what I'm doing wrong here