单项选择题

When the students came into the classroom, the teacher ______ on the blackboard.

A. was writing
B. is writing
C. wrote