Advertisement
basilkot

Untitled

Nov 28th, 2022
1,036
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.18 KB | None | 0 0
  1. Program Task3(output);
  2.     var n, b, i: integer;
  3. begin
  4.     readln(n);
  5.  
  6.     b := n div 2;
  7.  
  8.     for i := 1 to b do
  9.         if n mod i = 0 then
  10.             writeln(i);
  11.  
  12. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement