注意:此页面搜索的是所有试题
若运行时给变量输入12,则以下程序的运行结果是(   )。

main()

{int x,y;

scanf("%d",&x);

y=x>12?x+10:x-12;

printf("%d\n",y);

}

(2分)
A0
B22
C12
D10

参考答案