单项选择题

两次运行下面的程序,如果从键盘上分别输入10和8,则输出结果为 ______。 #include<iostream.h> viod main(){   int x: cin>>x: if(x++>9)cout<<x; else cout<<x—<<endl; }

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