寫到了~
Dim x, i, j As Integer
x = InputBox("Enter value for number (1~10)", "Input x")
laloutput.Text = ""
For i = 1 To x
For j = 1 To x
If (i = 1 Or i = x) Or (j = 1 Or j = x) Then
laloutput.Text += "*"
Else
laloutput.Text += " "
End If
Next j
laloutput.Text += vbCrLf
Next i
End Sub