fn guess_number_width(val: usize) -> usize {
    if val < 10 {
      1
    } else if val < 100 {
      2
    } else if val < 1000 {
      3
    } else if val < 10000 {
      4
    } else if val < 100000 {
      5
    } else {
      6
    }
  }
/// Guess the number of characters needed to represent a number.
///
/// We limit ourselves to number < 100000.
Guess the number of characters needed to represent a number.
We limit ourselves to number < 100000.
Guess the number of characters needed to represent a number . We limit ourselves to number < 100000 .
fn guess_number_width(val: usize) -> usize {
    if val < 10 {
      1
    } else if val < 100 {
      2
    } else if val < 1000 {
      3
    } else if val < 10000 {
      4
    } else if val < 100000 {
      5
    } else {
      6
    }
  }
fn guess_number_width ( val : usize ) -> usize { if val < 10 { 1 } else if val < 100 { 2 } else if val < 1000 { 3 } else if val < 10000 { 4 } else if val < 100000 { 5 } else { 6 } }
Guess the number of characters needed to represent a number.
Guess the number of characters needed to represent a number .
val
usize
val
usize