Im doing a program that has to ask the user for two positive integers and outputs. I need it to have the inputs, all the factors of each (include 1 and itself), the prime factorization of each, the least common multiple (LCM) of the two integers, and the greatest common factor (GCF) of the two integers. I already started but Im having problems starting the factors. I have no idea how to do it. Do I have to go through each and every single number to check the input numbers or what? Im totally confused. I hope theres someone here who can help me out with this little problem. Thanks

Code:#include <stdio.h> #include <stdlib.h> #include <math.h> void main(void) { int num1; int num2; printf("Please enter two positive numbers: \n"); scanf("%d%d%", &num1, &num2); if ((num1 < 0) || (num2 < 0)) { printf("\n\nPlease enter all positive values!\n"); } else { } }