# From the keyboard, the user enters numbers until 0 is entered, calculate the sum of the numbers entered.

July 27, 2021 | education

| program zz1;

var x, y: integer; // set variables of integer type

begin

read (x); // enter the first number of the sequence

y: = y + x; // add it to the amount

while x <> 0 do // organize a loop in which we will enter the numbers of the sequence until we enter zero

begin

read (x); // enter the next number of the sequence

y: = y + x; // add it to the amount

end;

write (‘Sum of sequence numbers =’, y); // display the answer

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.