单项选择题
以下不能实现符号函数y=sgn(x)的程序段是()。
A.if x>0 then y=1 else if x=0 then y=0 else y= -1 B.if x>0 then y=1 else if x<0 then y= -1 else y=0 C.if x>=0 then if x=0 then y=0 else y= -1 else y=1 D.if x<>0 then if x<0 then y= -1 else y= 1 else y=0
单项选择题 s=left$(“abcd”,2)+right$(“efgh”,2),则s的值为()。
单项选择题 已知A(1)=1,A(2)=2,A(3)=6,A(4)=8则A(A(1)+A(2))=()。
单项选择题 关于条件语句,下列说法错误的是()。