Write a program that will print random integers from the range -20 to 40 to the screen until 0 is printed

program zz1;
var n: integer; // set a variable of integer type
begin
n: = random (61) – 20; // get the first random number from the given range
write (n, ”); // display it on the screen
while n <> 0 do // organize a loop until it randomly turns out to be zero
begin
n: = random (61) – 20; // get the next random number from the given range
write (n, ”); // display it on the screen in a line separated by a space
end;
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.