I got this question in a exam.There were two more statements in the examination(but they were quite clearly wrong).However I got stuck between these two statements.The contrapositive of the the statement "I go to school if it does not rain" is
$(1)\qquad$If it rains, I do not go to school
$(2)\qquad$If I do not go to school it rains
Which of the two options would be correct by mathematical reasoning.
The contrapositive of $A$ implies $B$ is not $B$ implies not $A$.
In other words, the contrapositive of if $A$, then $B$ is if not $B$, then not $A$.