单项选择题

下列程序的输出结果是( )。
#include<stdio.h>
main()
int i, s=0;
for(i=1; i<10; i++)
if(!(i%2)&&!(i%3))s+=i;
printf("%d\n", s);

A.4
B.39
C.45
D.6