1.
begin
var a,b:integer;
a:=1;
b:=0;
while a<=10 do begin
b:=b+a;
a+=1;
end;
writeln(b);
end.
2.
repeat
until a > 10;
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
1.
begin
var a,b:integer;
a:=1;
b:=0;
while a<=10 do begin
b:=b+a;
a+=1;
end;
writeln(b);
end.
2.
begin
var a,b:integer;
a:=1;
b:=0;
repeat
b:=b+a;
a+=1;
until a > 10;
writeln(b);
end.