• 2022-06-03
    分段函数:,下面程序段中正确的是__________。
    A: Ifx<0Theny=0ElseIfx>0Theny=1ElseIfx>1Theny=2Elsey=3EndIf
    B: Ifx>=2Theny=3ElseIfx>=1Theny=2ElseIfx>=0Theny=1Elsey=0EndIf
    C: Ifx<0Theny=0If0<=x<1Theny=1If1<=x<2Theny=2Ifx>=2Theny=3
    D: Ifx>=2Theny=3Ifx>=1Theny=2Ifx>0Theny=1Ifx<0Theny=0