there is something that I can not understand in the following code:
int main()
{
int count = 0;
int x=125;
while(x!=0)
{
count++;
x=x/10;
}
}
if x is 125 so x=x/10 gives 125=12,5 which is something odd and impossible. what is the meaning of x=x/10??? what is x=x/10????? what is its role??? how it works???
any detailed and instructive help or explanation would be appreciated