for x=1 to 9
for y=1 to 9
for z=1 to 9
if 100*x+10*y+z=x^3+y^3+z^3 then n=n+1:print x;y;z,"成立"
next z,y,x
在循环语句中的if语句判断错误,但这样的语句不放在循环体内则不会出错,请问qb大侠其中原因是什么?
dim a as integer,b as integer,c as integer,i as integer
for i = 100 to 999
a=int(i/100)
b=int ((i-100*a)/10)
c=i-int(i/10)*10
if =a*a*a+b*b*b+c*c*c then print i,
next i
print
end