ProgrammingModerate

How many divisors does 10 have among 1 through 10?

  1. A. 3
  2. B. 5
  3. C. 4
  4. D. 6

Correct answer: C. 4

Testing 1..10, only 1, 2, 5 and 10 divide 10 evenly, so there are 4 divisors. 3 forgets 10 itself, and 5 counts every number up to 10 / 2.

More C Programming questions

Exams that ask this topic