单选题

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

int cnt =0;

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

cnt = cnt+1;

}

A

1

B

4

C

5

D

10

赣ICP备20007335号-2