m3gaman3g3nd
01-11-2012, 07:27 AM
im reviewing all my basics again and not quite sure hot to write this
program new;
var
i, c, b: integer ;
begin
for i:= 1 to 4 do
inc(b) and inc(c); //error : fix
writeln(b+c)// supposed to equal 8
end.
edit.
found solution.
when using multiples you put begin
program new;
var
i, c, b: integer ;
begin
for i:= 1 to 4 do
inc(b) and inc(c); //error : fix
writeln(b+c)// supposed to equal 8
end.
edit.
found solution.
when using multiples you put begin