What is printed from the following blocks of code?int x;for(x = 0; x < 2002; x+=3);cout

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/02 07:38:00
What is printed from the following blocks of code?int x;for(x = 0; x < 2002; x+=3);cout

What is printed from the following blocks of code?int x;for(x = 0; x < 2002; x+=3);cout
What is printed from the following blocks of code?
int x;
for(x = 0; x < 2002; x+=3);
cout

What is printed from the following blocks of code?int x;for(x = 0; x < 2002; x+=3);cout
for 循环体为空,x一直一步长3 增加,0,3,6...大于2002的能被3整除的最小整数是2004,所以输出Spring 2004