下面程序段: dim y as integer If y Then Print y+1 Else Print y+2 运行后,显示的结果是()
举一反三
- 下面程序段: Dim y If y Then Print y+1 Else Print y+2 运行后,显示的结果是 .
- 编写如下程序: Private Sub Command1_Click() Dim x As Integer, y As Integer x = 1: y = 1 Do y = x * y If y > 10 Then Print x, y Exit Do Else x = x + 3 End If Loop While x <= 10 End Sub 运行程序,输出结果为______
- 如下程序的运行结果是( ) int x = 1, y=1; if(x==1) y= x+1; else if(y==2) x= y+1; else y= 0;
- 下面程序段运行后,显示的结果是( )。Dim x as integer if x then print x else print x+1 A: 显示出错信息 B: 0 C: 1 D: -1
- 运行如下程序,输出结果是 。 try: x, y = 1, 0 z = x / y print(0, end=",") except: print("1", end=",") else: print("2", end=",") finally: print("3", end=",")