單項(xiàng)選擇題

輸入一個(gè)實(shí)數(shù),對其進(jìn)行分半,一直到小于0.001為止,輸出分半的次數(shù)()
#include <stdio.h>main(){int i=0;float n;scanf("%f",&n);while(_________){n=n/2;i++;}printf("%d",i);}

A.n>=0.001
B.n<0.001
C.n<=0.001
D.n!=0.001


您可能感興趣的試卷