Home > Back-end >  How to evaluate a number by the number of the factor of 2
How to evaluate a number by the number of the factor of 2

Time:09-23

Number of factors such as 8, 2 to 3; 10, 2 by the number of factors for 1.
When n is large, and is seeking n! , how should do

CodePudding user response:

 while (n % 2==0) 
{
Factors_of_two + +;
N/a=2;
}
  • Related