N 是整数,执行如下 C++ 代码,将能输出 0 到 N 之间(包含 N)所有数之和。 int N, tot, i; cin >> N; tot = 0; for (i = 0; i < N + 1; i++) tot += i; cout << tot;