> while (num/=10)???? it should be a test statement that returns a true or
> false inside the while statement so it knos when to break out of the loop
so
> /= wont work....
Yes, it will. All assignment operators in C return the value they assigned.
So not only will it divide num by 10, but it will also return that value -
and this way, it keeps looping until num is zero
-Scott