[单选题]

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

A.0

B.22

C.12

D.10

参考答案与解析: