Write a program to calculate the product of 30 random natural numbers.

program zz1;
var i, a, S: integer; // set variables of integer type
begin
s: = 1; // set the initial value for the product
for i: = 1 to 30 do // organize a loop for 30 repetitions
begin
a: = random (5) + 1; // get a natural number at random
s: = s * a; // calculate the product by multiplying the next natural number
end;
writeln (‘Received work =’, s); // 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.