写出下列程序的功能:clearinput"输入x的值"toxifx0y=2*x+5elseifx=0y=xelsey=abs(x)endifendif?y

写出下列程序的功能:clearinput"输入x的值"toxifx0y=2*x+5elseifx=0y=xelsey=abs(x)endifendif?y


相关考题:

执行下列程序段以后,内存变量y的值是( )。x=76543y=0DO WHILE x>0 y=x%10+y*10 x=int(x/10)ENDDOA.3456B.34567C.7654D.76543

下列程序段执行后,内存变量y的值是( )。 x=76543 y=0 DO WHILE x>0 y=x%10+Y*10 X=int(x/10) ENDDOA.3456B.34567C.7654D.76543

运行下列程序: x=Input Box("input value Of x”) Select Case x Case IsO y=y+1 Case Is=0 y=x+2 Case Else y=x+3 End Select Print x;y 运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

根据下列程序,X、Y的值正确的是( )。 Dim xAs SingleDim yAs SingleIfx<0 Theny-=3Elsejf x<l theny=2*xelsey=48x+6EndifA.当x=2时,y=一2B.当X=-1时,y=一2C.当x=0.5时,y=4D.当x=一2.5时,y=11

运行下列程序: x=InputBox("input value of x") Select Case X Case Is>0 y=y+1 Case Is=0 y=x+2 Case ELse y=x+3 End Select Print x;y 运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

有如下程序 x=InputBox("input value of x") Select Case x Case Is>0 y=y+1 Case Is=0 y=x+2 Case Else y=x+3 End Select Print x ;y 运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

有如下程序: x = InputBox("Input value of x") Select Case x Case Is > 0 y=y+1 Case Is = 0 y=x + 2 Case Else y=x + 3 End Select Print x, y运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

运行下列程序: x = InputBox( "input value of x" ) Select Case x Case Is > 0 y=y+1 Case Is = 0 y=x+2 Case Else y=x+3 End Select Print x; y运行时,从键盘输入-5,输出的结果是( )。A.-7B.-9C.-8D.-10

if 结构中,以下用法正确的是()A.if (2<i<=3) i endB.if y>x elseif y<x else y==x endC.if (x<10) { y=x+1; }D.if x>0 y=sin(x); else y=cos(x); end