下面程序输出的是( )
#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; } }
2 2 3 9
2 10 3 9
2 10 11 121
2 10 3 100