单选题 C++
题号 #4126045

下面程序的输出结果是(       )。
#include<iostream>
usingnamespace std;
int main()
{
int x;
for(int i=1;i<=100;i++)
   x=i;
   if(++x%2==0)
     if(++x%3==0)
       if(++x%7==0)
          cout<<x<<’x’;
   }
cout<<endl;
}

进入在线模考

参考答案

D

答案解析

略。

你可能感兴趣的试题

A.break语句可用于循环体中,它将使执行流程跳出本层循环体。
B.break语句可用于switch语句中,它将使执行流程跳出当前switch语句。
C.break语句可用于if体内,它将使执行流程跳出当前if语句。
D.break语句在一层循环体内可以出现多次。
找试题 · 找答案 · 找资料 在线模考