Find the product of all natural numbers divisible by 3 or less than 13. Note that the initial value P = 1. Write a program

program zz1;
var p, i: integer;
begin
p: = 1; // set the initial value to the product
for i: = 1 to 13 do // set the loop to thirteen, iterate over all numbers from 1 to 13
if i mod 3 = 0 then p: = p * i; // check if the number is divisible by three, then multiply it by the product
write (‘product of multiples of three =’, p); // 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.