Let p,q and r be the statements:
p: city X is in U.P
q : city X is in India
r :p→q
Contrapositive of r is
if city X is not in India then X is not in U.P
city X is neither in U .P. nor in India
city X is in India but not in U.P.
none of these
Contrapositive of p→q is ~q→∼p