Search:

Type: Posts; User: stahta01

Search: Search took 0.03 seconds.

  1. Replies
    6
    Views
    2,783

    What are the divisors for 1 and 2. For one the...

    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...
  2. Replies
    6
    Views
    2,783

    Every time you test a new number you have to...

    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....
  3. Replies
    6
    Views
    2,783

    I suggest stating the output that is correct;...

    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...
Results 1 to 3 of 3