I am writing a C program that will allow me to determine the maximum number of digits that a value can have to be within the range 0..m.
max number of digits =1
Actual range 0..9
max number of digits =2
Actual range 0..99
max number of digits =8
Actual range 0..99999999
where 9 is a digit not a value...
firstly I dont want code but could someone explain the above theory as I just dont get it....