#2183. [GESP202503 一级 C++] 第 15 题

[GESP202503 一级 C++] 第 15 题

下面C++代码执行后输出的是( )。

#include <iostream>
using namespace std;
int main() {
    int tnt = 0;
    for (int i = 5; i < 100; i += 5) {
        if (i % 2 == 0)
            continue;
        tnt += 1;
        if (i % 3 == 0 && i % 7 == 0)
            break;
    }
    cout << tnt << endl;
    return 0;
}

{{ select(1) }}

  • 500
  • 450
  • 10
  • 1