①界面设计②分析问题③编写代码④保存文件⑤调试与运行⑥生成可执行文件
z=0
For x=1 to 10 step 1
z=z+x
next x
以上程序段是( )结构。
a = 100
b = 20
a = a + b
b = a – b
x=20
if x>=100 then y=5*x else y=4*x end if
x=3
Select Case x
Case 5
Print "优秀"
Case 4
Print "良好"
Case 3
Print "通过"
Case Else
Print "不通过"
End Select
s = 0
For i = 1 To 3
s = s + i
Next i
Private Sub Command1_Click()
Dim x, y, t As Integer
x = 10
y = 30
If x < y Then
t =
x =
y =
End If
Label1.Caption = Str(x)
Label2.Caption = Str(y)
End Sub
a = 1
b = 2
c = a + b * 2
程序结果 a= b= c=
Private Sub Form_Click()
Dim s As Single
Dim i As Integer
s =
For i = 1 ToStep 1
Print "s="; s
要求,学生成绩由文本框(Text1)输入,结果显示在文本框(Text2)中。评分标准如下:
90≤成绩≤100 A
80≤成绩<90 B
60≤成绩<80 C
0≤成绩<60 E
其余成绩 无效 文本框(Text2)中显示“输入有误,请检查输入的成绩”