Write a program that displays all the divisors of the natural number N.

program divide;
var N: integer;
begin
writeln (‘Enter an integer N’);
readln (N);
writeln (‘Divisors of a number’, N);
for i: integer: = 1 to n do if n mod i = 0 then write (i, ”);
// If the remainder of the division of the number N
// by the number i increasing in the loop
// equals zero, then print the divisor number i
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.