the difference of 2 digit no . & the no . obtained by interchanging the digits is 36 . what is the difference the sum and the number if the ratio between the digits of the number is 1 : 2 ?
let the number be xy . given xy – yx = 36 . this means the number is greater is than the number got on reversing the digits . this shows that the ten ’ s digit x > unit digit y . also given ratio between digits is 1 : 2 = > x = 2 y ( 10 x + y ) – ( 10 y + x ) = 36 = > x – y = 4 = > 2 y – y = 4 . hence , ( x + y ) – ( x – y ) = 3 y – y = 2 y = 8 b
subtract(add(divide(36, subtract(subtract(multiply(const_10, 2), const_10), const_1)), multiply(divide(36, subtract(subtract(multiply(const_10, 2), const_10), const_1)), 2)), subtract(multiply(divide(36, subtract(subtract(multiply(const_10, 2), const_10), const_1)), 2), divide(36, subtract(subtract(multiply(const_10, 2), const_10), const_1))))