单选题

有以下计算公式

若程序前面已经在命令行中包含math.h文件,不能够正确计算上述公式的程序段是(    )

A

y=sqrt(x); if(x-0) y=sqrt(-x);

B

if (X>=0) y=sqrt(x); else y=sqrt(-x);

C

if(x>=0) y=sqrt(x); if(x=0)y=sqrt(-x);

D

y=sqrt(x>=02x-x);

赣ICP备20007335号-2