单选题 适中
#21039

下面程序的输出为( )。 # include <iostream> using namespace std ; int main ( ) { int cnt =…

下面程序的输出为( )。

#include <iostream>
using namespace std;
int main() {
	int cnt = 0;
	for (int x = 0; x <= 10; x++)
		for (int y = 0; y <= 10; y++)
			for (int z = 0; z <= 10; z++)
				if (x + y + z <= 15)
					cnt++;
	cout << cnt << endl;
	return 0;
}
未登录也能判分,登录后才会记录
答案与解析
正确答案:D
这道题暂未补解析。