level 1
program l(input,output);
var
b:integer;
a:integer;
begin
for a:=1 to 10 do;
begin
a:=a+1;
readln(b);
if b=7 then writeln('ok')
else writeln('no');
end;
readln;
end.
如上代码。编译环境:XP,free pascal 2.6.0。
如下问题:只能循环一次,请教一下什么原因
2014年01月04日 12点01分
1
level 13
for a:=1 to10 do
这错了,你重新把a换成其他字母,重新定义,我也初学,你多大?
2014年01月05日 03点01分
3
回复 曼莎诗祺 :我十二,留下企鹅,交流切磋怎样
2014年01月05日 04点01分
回复 谁伴我闯荡的20 :嗯哼,80383576
2014年01月05日 04点01分
我才11岁,己经学了一年了……
2014年01月15日 09点01分
level 5
’do‘后面的‘;’去掉
不然‘;'算一个空语句
。。。。。
。。。。。
。。。。。
2014年01月06日 04点01分
6