We havent learned arrays yet in this language so im sure I cant use it until we get to it. This how the output is suppose to look:
6 is a perfect number
Factors: 1, 2, 3
Type: Posts; User: mallyg34
We havent learned arrays yet in this language so im sure I cant use it until we get to it. This how the output is suppose to look:
6 is a perfect number
Factors: 1, 2, 3
Can't I someway put a "cout" statement in a loop to get the factors instead of make the code extra long.
I don't understand.
My program works fine and listed the 3 perfect numbers under 1000, but i need help with listing the factors of the perfect numbers. Can someone please help me out with this?
#include...