|

楼主 |
发表于 2023-5-28 05:58
|
显示全部楼层
Private Sub Command1_Click()
Dim A, B, c
a1 = Val(Text1)
A = 1
Do While A <= a1
B = 1
Do While B <= a1
C1 = MPC1(qxdcm(Val(A), 6), qxdcm(Val(B), 8))
C2 = MBBC1(Trim(C1))
c = MBBC1(zhengchuqy(Trim(C2)))
If InStr(c, "/") = 0 And InStr(C2, "/") = 0 Then
s1 = s1 + 1
s = s & "a=" & A & " b=" & B & " c=" & c & vbCrLf
Else
s1 = s1
End If
B = B + 1
Loop
A = A + 1
Loop
If s1 > 0 Then
Text2 = s
Else
Text2 = "wu jie"
End If
End Sub
Private Sub Command2_Click()
Text1 = ""
Text2 = ""
End Sub
|
|