单项选择题

下列关于for循环的语法格式,正确的是()。

A.for (int i =1,i <=3,i++){}
B.for (int i ;i <=3;i++){}
C.for (i =1;i <=3;i++){}
D.for(int i=1;i<=3;i++){}