What are the divisors for 1 and 2.
For one the divisor is 1; but, your rules says you can not count 1. Therefore count is zero.
For two the divisors are 1 and 2; but, your rules says you can not...
Type: Posts; User: stahta01
What are the divisors for 1 and 2.
For one the divisor is 1; but, your rules says you can not count 1. Therefore count is zero.
For two the divisors are 1 and 2; but, your rules says you can not...
Every time you test a new number you have to reset count back to zero.
After major re-write of your code I got this output.
FYI: the number 1 has no whole number divisors when 1 is not counted....
I suggest stating the output that is correct; because I think I misread your question.
Ignore the rest of my post, I think I am solving a different problem than the one you asked.
In case you...