FOR LOOP 9

Task 9: Write a program to print all factors of a given integer. A factor is a number that divides into another number with no remainder.
e.g. User enters 10 – Display is 1, 2, 5 and 10

Scroll to Top