单选题
有以下程序:
#include<iostream.h>
void main()
int x=10,y=10;
for(int i=0;x>8;y=++i)
cout<<x--<<","<<y<<",";
该程序运行后的输出结果是( )。
A、
10,1,9,2
B、
9,8,7,6
C、
10,9,9,0
D、
10,10,9,1
【正确答案】
D
【答案解析】
提交答案
关闭