Private Sub Form_Click()
Dim x As Integer, y As Integer, z As Integer
For x = -45 To 45
For y = x To 45
For z = y To 45
If x ^ 2 + y ^ 2 + z ^ 2 = 2000 Then
Print "x=" + Str(x) + "y=" + Str(y) + "z=" + Str(z)
End If
Next z, y, x
End Sub
这样会好一些~~
Dim x As Integer, y As Integer, z As Integer
For x = -45 To 45
For y = x To 45
For z = y To 45
If x ^ 2 + y ^ 2 + z ^ 2 = 2000 Then
Print "x=" + Str(x) + "y=" + Str(y) + "z=" + Str(z)
End If
Next z, y, x
End Sub
这样会好一些~~
希望每天都能学上一招