单项选择题

______ those bad habits, he would not have got liver cancer.

A.Was he giving up
B.Did he give up
C.If he gave up
D.Had he given up