At least show me the logic on how to solve the math problem parts. I will put it into program if you just explain to me how to get the factors, tell how many, find the sum, and find the product.
Hi, im kinda new to using loops in my programming. I'm still a little rusty. could someone hep me out a little on this problem?
I sure could use some quick help from you guys. You've always been there in the past. Thanks so much.
I need a program that will prompt the user for a single positive integer greater than 1. If the user does not enter a valid integer, then the program should continue to reprompt the user for a value until a valid integer is entered. Once the integer is read in, the program will print out the following information about the integer:
1) A list of each of the positive factors of the given integer.
2) The number of factors the given integer has.
3) The sum of the factors of the integer.
4) The product of the factors of the integer.
An example output would be :
Enter a positive integer greater than one.
Here is a list of the positive factors of 12:
1 2 3 4 6 12
The number of positive factors of 12 is 6.
The sum of the positive factors of 12 is 28.
The product of the positive factors of 12 is 1728.
thanks so much guys.