level 1
普及率😳
楼主
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim a, i, x, y As Integer
a = TextBox1.Text
For i = 2 To a - 1
x = 1
y = 1
If a Mod i = 0 Then
x = 0
end if
If a Mod a - i = 0 Then
y = 0
End If
If x = 1 And y = 1 Then
Exit For
TextBox2.Text = a & "=" & a - i
End If
Next i
End Sub
End Class
错在哪里!!!!!!!!!
2016年05月03日 15点05分
1
Dim a, i, x, y As Integer
a = TextBox1.Text
For i = 2 To a - 1
x = 1
y = 1
If a Mod i = 0 Then
x = 0
end if
If a Mod a - i = 0 Then
y = 0
End If
If x = 1 And y = 1 Then
Exit For
TextBox2.Text = a & "=" & a - i
End If
Next i
End Sub
End Class
错在哪里!!!!!!!!!