1个回答
展开全部
Sub s()
For a = 1 To 9
For e = 0 To 9
If a <> e Then
For p = 1 To 9
If p <> a And p <> e Then
For r = 0 To 9
If r <> a And r <> e And r <> p Then
x = p * 1000 + e * 100 + a * 10 + r
y = a * 101 + r * 10
Z = p * 100 + e * 10 + a
If x - y = Z Then
Debug.Print x; "-"; y; "="; Z
End If: End If
Next: End If
Next: End If
Next: Next
End Sub
追问
果然高手啊
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询