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.