单项选择题

若执行以下程序时从键盘上输入9,则辅出结果是
main()
int n;
cin>>n;
if(n++<10)cout<<n<<endl;
else cout<<n--<<endl;

A.11
B.10
C.9
D.8