C program that finds all the whole factors of a number