单项选择题

若运行时给变量x输入12,则以下程序的运行结果是
#include<iostream.h>
void main( )

int x,y;
cin>>x;
y=x>12 x+l0:x-12;
cout<<y;
cout<<endl;

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