Private Sub 执行_Click() Dim j As Integer, year As Integer, money As Double year = Val(Text1.Text) Text2 = 5000 For j = 1 To year money = money + 5000 * j * 0.2 Next j Text3.Text = 5000 * year - money End Sub 题意不明显
Private Sub 执行_Click() Dim j As Integer, year As Integer, money As Double year = Val(Text1.Text) For j = 1 To year money = money + 5000 Text2 = money * 0.2 Text3.Text = money - Text2.Text money = Text3.Text Next j End Sub