changeset 856 | 23273e3a120f |
parent 853 | 568671822d52 |
child 860 | 6f80e6df34f7 |
--- a/cwtests/cw02/factors.while Fri Dec 03 18:10:33 2021 +0000 +++ b/cwtests/cw02/factors.while Fri Dec 03 21:56:55 2021 +0000 @@ -6,6 +6,6 @@ write "\nThe factors of n are"; f := 2; while (f < n / 2 + 1) do { - if ((n / f) * f == n) then { write(f) } else { skip }; + if ((n / f) * f == n) then { write(f); write("\n") } else { skip }; f := f + 1 } \ No newline at end of file