0

With "n" being any positive integer, how many times the statement of while loop will be run, related to "n" please?

while(n%2 == 0) n=n/2

1 Answers1

0

Primes other than $2$ don't matter at all. Just try it with the numbers from $10$ through $16$ and you will probably see a pattern.

Ross Millikan
  • 374,822