Accept a positive integer n as input and print all the factors of n, one number
on each line. A factor of n is a positive integer that divides n leaving no
remainder. Print the factors in increasing order.
Input
A single line containing the positive integer n.
Output
Every factor of n, one on each line, in increasing order.
For example, if the input is 12, the output is:
1
2
3
4
6
12
Write a complete program: read the input with input() and print the result with print().
Input
12
Output
1
2
3
4
6
12