单项选择题

They were just going out()it began to rain.

A.when
B.as
C.while
D.and