H
happyallday
Unregistered / Unconfirmed
GUEST, unregistred user!
请问在下面这段程序中
var i,n,z,y,sum:integer;
begin
sum:=0;
for i:=1 to 9 do
begin
if text='-' then
continue;
z:=strtoint(text);
for n:=8 to 1 do
//跳过
begin
y:=z*n;
sum:=sum+y;
end;
// 跳过
end;
我调试的时候发现"for n:=8 to 1 do
"就不运行了,总是跳过这段,请问是怎么一回事,
谢谢各位帮忙,谢谢!!
var i,n,z,y,sum:integer;
begin
sum:=0;
for i:=1 to 9 do
begin
if text='-' then
continue;
z:=strtoint(text);
for n:=8 to 1 do
//跳过
begin
y:=z*n;
sum:=sum+y;
end;
// 跳过
end;
我调试的时候发现"for n:=8 to 1 do
"就不运行了,总是跳过这段,请问是怎么一回事,
谢谢各位帮忙,谢谢!!