单项选择题

下列while循环语句写法正确的是()。

A.while a< 10
B.while a< 10:
C.while a< 10;
D.while(a< 10)