===== PascalABC.NET =====
begin
var (s, i) := (0, 1);
while i <= 100 do
s += Sqr(i);
i += 1
end;
Println(s);
(s, i) := (0, 1);
repeat
until i > 100;
Println(s)
end.
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
===== PascalABC.NET =====
begin
var (s, i) := (0, 1);
while i <= 100 do
begin
s += Sqr(i);
i += 1
end;
Println(s);
(s, i) := (0, 1);
repeat
s += Sqr(i);
i += 1
until i > 100;
Println(s)
end.