High School

Which of these statements is punctuated properly?

A. That was amazing he said. "I never knew you could do that."
B. "That was amazing "he said. I never knew you could do that."
C. That was amazing, "he said." I never knew you could do that.
D. "That was amazing," he said. "I never knew you could do that."