#GESP2409. [GESP]L4-202406-Q2409-S

[GESP]L4-202406-Q2409-S

下面程序输出的是( )

#include<iostream>
using namespace std;
int func();
int main()
{
    int i=2;
    cout<<i<<endl;
    for(int x=0;x<1;x++)
    {
        int i=10;
        cout<<i<<endl;
    }
    i=i+1;
    cout<<i<<endl;
    {
        i=i*i;
        cout<<i<<endl;
    }
}

{{ select(1) }}

  • 2 2 3 9
  • 2 10 3 9
  • 2 10 11 121
  • 2 10 3 100