Write a Pascal program. Calculate the sum of numbers from 19 to 51 if they are divisible by 5.

1st option:
Pascal (for)
var sum: integer;
i: integer;
begin
sum: = 0;
i: = 0;
for i: = 19 to 51 do
begin
if i mod 5 = 0 then
sum: = sum + i;
end;
writeln (sum);
end.
2nd option:
Pascal
var sum: integer;
i: integer;
begin
sum: = 0;
i: = 19;
while (i <= 51) do
begin
if i mod 5 = 0 then
sum: = sum + i;
i: = i + 1;
end;
writeln (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.