文档分类
If (3 * a + 2 * b + c / 2) = 100 Then
d = d + 1
Print d; Tab; "大马" & a & "匹"; Tab; "小马" & b & "匹"; Tab; "马驹" & c & "匹" Print "************************************"
End If
Next c
Next b
Next a
运行后结果远远超出范围,总数也不是一百匹马
改正:c不是循环结构,而是确定的值c = 100 - a - b