#GESP4204. [GESP]L2-202609-Q4204-S

[GESP]L2-202609-Q4204-S

执行以下 C++ 代码后,最终的输出结果是( )。

int total, i, j;
total = 0;
i = 1;
while (i <= 3) {
    for (j = 1; j < i + 1; j++)
        total += i * j;
    i += 1;
}
cout << total;

{{ select(1) }}

  • 9
  • 11
  • 23
  • 25