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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/28 13:31:17
Whatisprintedfromthefollowingblocksofcode?intx;for(x=0;xWhatisprintedfromthefollowingblocksofcode?in

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