#13950. [GESP202609 二级 C++] 第 9 题

[GESP202609 二级 C++] 第 9 题

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

int  tot = 0,  i;
for (i  = -5;  i < 5; i++)
     if (not(i  % 3 != 0))
         tot  += 1;
cout  << tot;

{{ select(1) }}

  • 2
  • 3
  • 7
  • 9