how many times digit 6 is used while writing numbers from 100 to 1400 ?
"there are 100 numbers which begin with 600 next , in every 10 numbers such as 100 to 110 , 110 to 120 , 120 to 130 6 comes at least once . number of such intervals = end limit - first no . / interval . our range of numbers is 100 - 1000 1000 - 100 = 900 / 10 = 90 number of 10 s interval in this is 90 . so 90 ' 6 s ' so far we have calculated 190 . the total now comes to 280 . the nearest to which is 350 . hence b ."
add(add(divide(subtract(1400, 100), const_10), multiply(add(const_10, const_1), add(const_10, const_1))), multiply(6, const_2))