Simple "Sum" of Pascal

Level pending
//This is PseudoCode
a := 1;
b := 2;
c := a + b;
sum := 0;
for i := 1 to 3 do
begin
    inc(a); inc(b);
    sum := sum + a + b;
    sum := sum + c;
end;
writeln(sum);

What is the last result of sum ?

×

Problem Loading...

Note Loading...

Set Loading...