Ok here is what I am doing. I am comparing 6 numbers for which number has the most digits. For some reason my loop goes through and counts my smallest number.
Here is my code:
for ( int x = 0; x < z; x++ )
{
number = num1[x];
e = d;
digitCnt = 0;
while(number)
{
number=number/10;
digitCnt++;
}
d = digitCnt;
if ( e > d )
f = d;
}
What am I doing wrong?
The Ski