#GESP1980. [GESP]L3-202312-Q1980-S

[GESP]L3-202312-Q1980-S

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

int temp=0;
for(int i=1;i<7;i++)
{
    for(int j=1;j<5;j++)
    {
        if(i/j==2)
        {
            temp++;
        }
    }
}
cout<<temp<<endl;

{{ select(1) }}

  • 10
  • 8
  • 4
  • 3