我为我的一门课制作了这个循环,但由于某种原因,循环没有停止。这是我的代码
Dim strScore As String
Dim intNumTests As Integer 'counter
Dim sngSumTests As Single 'accumulator
Dim sngAverage As Single
strScore = InputBox("Enter the score. Click cancel when finished.", "Score Entry")
Do While strScore <> " "
intNumTests = intNumTests + 1 ' update Counter
sngSumTests = sngSumTests + Val(strScore)
strScore = InputBox("Enter the score. Click cancel when finished.", "Score Entry")
Loop