题库 C++/C语言题库 题目列表 下面程序的输出为( )。1 #include <io...
单选题

下面程序的输出为( )。

1 #include <iostream>
2 using namespace std;
3
4 int main() {
5  int cnt = 0;
6  for (int x = 0; x <= 10; x++)
7   for (int y = 0; y <= 10; y++)
8    for (int z = 0; z <= 10; z++)
9     if (x + y + z == 15)
10      cnt++;
11  cout << cnt << endl;
12  return 0;
13 }
A.

90

B.

91

C.

96

D.

100

题目信息
C++语言等级考试真题 2024年 八级 选择题
0%
正确率
0
评论
81
点击