30 道编程题
(1)选择结构(1~6) (2)循环结构(7~18) (3)数组(19~25) (4)过程(26~30)
1.输入 3 个数,输出最大的数
Private Sub Command1_Click()
Dim a As Integer, b As Integer, c As Integer, max As Integer
a = Text1.Text
b = Text2.Text
c = Text3.Text
If a > b Then
max = a
Else
max = b
End If
If c > max Then
max = c
End If
Print max
End Sub
6
23
2.有一元二次方程:aX2+bX+c=0,依次输入 a,b,c,判断此方程是否有实根
89
Private Sub Command1_Click()
Dim a As Integer
42 ...


雷达卡


京公网安备 11010802022788号







