what is the sum of the digits of integer k , if k = ( 10 ^ 30 - 36 )
there are 31 digits in 10 ^ 30 when we subtract 36 from it , there will be 30 digits left . 10 ^ 30 can be written as 9999999 . . . . ( 30 times ) + 1 so , 10 ^ 30 - 36 = 9999999 . . . . ( 30 times ) + 1 - 36 = 9999999 . . . . ( 30 times ) - 35 consider the last 2 digits , 99 - 35 = 64 the last 2 digits will be 64 . and our number would be 99999 . . . . . . 99964 with 2 less 9 s after subtraction . number of 9 s left are 28 and the last two digits are 64 the sum of the digits will be ( 28 * 9 ) + 6 + 4 = 262 answer : - e
add(multiply(subtract(10, const_1), subtract(30, const_2)), const_10)