单选题
已知n 为一正整数,在下面的循环语句中,循环体的重复次数约为__( )__ 。 s = 0; i = 1; while(i<n) {i = i *2; s = s + i;}
A、
n-1
B、
n/2
C、
D、
1og2n
【正确答案】
D
【答案解析】
提交答案
关闭