單項選擇題

在下面循環(huán)語句中循環(huán)體執(zhí)行的次數(shù)為()
for(int i=0;i++)
{if(i>n/2)break;}
< n;i++)
< /n;i++)

A.n/2
B.n/2+1
C.n/2-1
D.n-1


您可能感興趣的試卷