Choose the sentence that is closest in the meaning to the root one.
I didn’t know you were coming, so I didn’t wait for you.
A. If I had known you were coming, I would wait for you.
B. Had I know you were coming, I would have waited for you.
C. I would have waited for you if I knew you were coming.
D. If I had known you were coming, I would have waited for you.