#3096. [GESP202406 四级 C++] 第 3 题
[GESP202406 四级 C++] 第 3 题
下面程序输出的是( )。
#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 92 10 3 92 10 11 1212 10 3 100