单项选择题

若运行时给变量x输入12,则以下程序的运行结果是()
main()
{intx,y;
scanf("%d",&x);
y=x>12x+10:x-12;
printf("%d\n",y);
}

A.0
B.22
C.12
D.10