单项选择题

若x、y是int型变量,则执行以下语句后的x值是( )
#include<stdio.h>
main()

int x,y;
for(y=1,x=1;y<50;y++)
if(x>=10)break;
if(x%2==1)
x+=5;
x-=3;

A.3
B.6
C.7
D.10