这个错误怎么回事
pascal吧
全部回复
仅看楼主
level 2
var
a,b,c:integer;
begin
for a:=1 to 999 do
for b:=1 to 999 do
for c:=1 to 999 do
if a*a*a+b*b*b+c*c*c=100*a+10*b+c
then writeln(100*a+10*b+c);
end.
(7,30)Fatal, Syntax error,"Then" expected but"identifier B"found
2013年11月23日 10点11分 1
level 11
好像是不能把then写到下一行去,楼主你改过来试试。。
2013年11月23日 11点11分 2
level 12
括号?
2013年11月23日 16点11分 3
level 12
if a*a*a+b*b*b+c*c*c=100*a+10*b+c
then writeln(100*a+10*b+c);
改成
if a*a*a+b*b*b+c*c*c=100*a+10*b+c then
writeln(100*a+10*b+c);
或者
if a*a*a+b*b*b+c*c*c=100*a+10*b+c then writeln(100*a+10*b+c);
2013年11月24日 03点11分 4
不行啊..“)”expected but identifier B found
2013年11月24日 04点11分
1