编程!一个三位正整数,它的百位数小于十位数,且十位数小于个位数,求所有满足三位正整数的和Private Sub 计算_Click()Dim x As interger,sum As Integer,a As Integer,b As Integer,c As IntegerFor x = 100 To 999a = Int(x) / 100b = Int(x) / 10 Mod 10c = Int(x) Mod 10 If a End Sub这个打了以后没有任何反应,这个因为是直接复制的没有转行....

问题描述:

编程!一个三位正整数,它的百位数小于十位数,且十位数小于个位数,求所有满足三位正整数的和
Private Sub 计算_Click()Dim x As interger,sum As Integer,a As Integer,b As Integer,c As IntegerFor x = 100 To 999a = Int(x) / 100b = Int(x) / 10 Mod 10c = Int(x) Mod 10 If a End Sub
这个打了以后没有任何反应,
这个因为是直接复制的没有转行....

把你程序中的  Dim x As interger,  改成:Dim x As integer,
就能运行了.
运行结果是21750
没有问题呀?!