Is there a way to get the number of digits without the division by 10?
For example i have this:
int main()
{
  int dividend = 100;
  int remainder=0;
  int temp = 0;
  while(dividend>=10)
  {
    dividend = dividend-10;
    temp+=1;
  }
  printf("Quotient: %d\n",temp);
  printf("Reminder: %d\n",dividend);
}
And now I will add to calculate the number of digits of the variable dividend.
 
     
     
     
     
     
    