Factoring of integers. Write a program that asks the user for an
integer and then prints out all its factors. For example, when the user
enters 150, the program should print:
2
3
5
5
I've said this before - start simple and gradually work towards a full solution. For example, getting the input from the user would be a start. Don't be overwhelmed by the whole problem, break it down into smaller steps and tackle those smaller parts.
Just a hint, I'd expect the first program to use a loop, possibly a while loop, when finding and printing the factors.
The second program, a table is two-dimensional, so I'd expect two loops. Most likely a for-loop to go through each row, and inside that another for-loop to go through each column.