Calculate the sum of the given N natural numbers. Specifications Input The number N is entered

Calculate the sum of the given N natural numbers. Specifications Input The number N is entered, and then N numbers, the sum of which must be calculated. Output Print a single number – the sum of the entered numbers. In Pascal ABC

program sum;
var N, b, s: integer;
// N – number of numbers, b – number, s – sum of entered numbers.
begin
writeln (‘Enter the number of numbers’);
readln (n);
writeln (‘Enter numbers’);
s: = 0;
for i: integer: = 1 to N do
begin
readln (b);
s: = s + b;
end;
Writeln (‘Sum of entered numbers:’, s)
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.