使用vb求n1和n2之间的能被13和15整除的数?
展开全部
Private Sub Command1_Click()
Dim x As Integer, n As Integer
For x = n1 To n2
If x Mod 13 = 0 and If x Mod 15=0 Then
n = n + 1
Text1.Text = Text1.Text & x
If n Mod 10 = 0 Then Text1.Text = Text1.Text & x
End If
Dim x As Integer, n As Integer
For x = n1 To n2
If x Mod 13 = 0 and If x Mod 15=0 Then
n = n + 1
Text1.Text = Text1.Text & x
If n Mod 10 = 0 Then Text1.Text = Text1.Text & x
End If
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询