Private Sub Form_Click()
Dim i, j, m, n As Integer
For n = 100 To 999
i = n 100
j = (n Mod 100) 10
m = n Mod 10
If i ^ 3 + j ^ 3 + m ^ 3 = n Then
Print n; "="; i; "^3+"; j; "^3+"; m; "^3"
End If
Next n
End Sub
Private Sub Form_Click()
Dim i, j, m, n As Integer
For n = 100 To 999
i = n 100
j = (n Mod 100) 10
m = n Mod 10
If i ^ 3 + j ^ 3 + m ^ 3 = n Then
Print n; "="; i; "^3+"; j; "^3+"; m; "^3"
End If
Next n
End Sub