单项选择题

有以下程序:
main()
int x, i;
for(i=1; i<=50; i++)
x=i;
if(x%2=0)
if(x%3=0)
if(x%7=0)
printf("%d, i)";

输出结果是( )。

A.28
B.27
C.42
D.41