
Private Sub Command1_Click()
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim c As Integer
For i = 0 To 9
For j = 0 To 9
If i <> j Then
k = i * 1000 + i * 100 + j * 10 + j
For c = 31 To 100
If (c * c) = k Then
Print k
End If
Next c
End If
Next j
Next i
End If
End Sub
第六题做成这样
