Write an array input program until the sum of the input elements exceeds 100. In Pascal

Var i, sum: integer;
a: array [1..101] of integer;
begin
Writeln (‘Enter numbers’);
sum: = 0;
i: = 0;
while (sum <100) do
begin
i: = i + 1;
readln (a [i]);
sum: = sum + a [i];
if sum <= 100 then
writeln (‘Sum of entered items:’, sum)
else
writeln (‘The amount exceeds 100.’);
end;
For sum: = 1 to i do
write (a [sum], ”);
end.



One of the components of a person's success in our time is receiving modern high-quality education, mastering the knowledge, skills and abilities necessary for life in society. A person today needs to study almost all his life, mastering everything new and new, acquiring the necessary professional qualities.