dim n as integer
dim s as intger
Private Sub Command1_Click()
Do
n = n + 1
s = s + n
Loop untill s>=30000
Print n - 1
End Su