Factors of an integer: Difference between revisions
Content added Content deleted
m (→{{header|PL/I}}: removed the red tag.) |
|||
Line 2,547: | Line 2,547: | ||
=={{header|PL/I}}== |
=={{header|PL/I}}== |
||
{{incorrect|PL/I| <br> The output isn't consistent with the task's requirement. <br> It only lists integers within the range that are prime, <br> it doesn't list the factors of an integer. <br><br> Also, the program is incomplete and non-functional. <br><br> }} |
|||
<lang PL/I>do i = 1 to n; |
<lang PL/I>do i = 1 to n; |
||
if mod(n, i) = 0 then put skip list (i); |
if mod(n, i) = 0 then put skip list (i); |