单选题:以下程序的执行结果是 ____
以下程序的执行结果是( )
int main()
{
int num = 0;
while( num <= 2 )
{
num++;
printf( "%d,",num );
}
return 0;
}
A.0,1,2
B.1,2,3,
C.1,2,3,4,
D.1,2,
答案:B
int main()
{
int num = 0;
while( num <= 2 )
{
num++;
printf( "%d,",num );
}
return 0;
}
A.0,1,2
B.1,2,3,
C.1,2,3,4,
D.1,2,
答案:B