单选题

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

int tnt =0;

for (int i=1;i<5;i+=2){

    tnt = tnt+1;

}

cout << tnt;

A

2

B

4

C

9

D

10

赣ICP备20007335号-2