|// Solution Hint: the base10 logarithm of a number|
// (available in a function named "log10") tells what
// exponent to raise 10 to to get that number.
// e.g. 10^2 = 100, so log10(100) = 2; log10(1000) = 3, etc.
// Numbers between 100 and 1000 would have logarithms
// between 2 and 3 (so if you drop the fraction, you get 2).
// BUT: log10 expects a real number of some kind
// (float or double) as an argument, so to successfully
// use it in Visual Studio, one must convert the value
// above to a real number first, and then convert the
// computed logarithm back to an integer for the desired result.
// You may use either static_cast<float>() or (float)
// to convert an integer to float; and similarly in the reverse.
// NOTE: A correct solution that handles all valid integers
// will still need an IF statement!