Ranma ½ (1989)

A girl is involuntarily engaged to a boy who turns female when hit with cold water and male when hit with hot.