Just wondering some different ways to do this code without else if statements?
//this series of if/else statements allows the
//program to ignore leading zeros.
if (number < 10)
count = 5;
else if (number < 100)
count = 4;
else if (number < 1000)
count = 3;
else if (number < 10000)
count = 2;
else if (number < 100000)
count = 1;
else if (number < 1000000)
count = 0;