Write a c program to find a two digit number, the second digit of which is smaller than its first digit by 4, and if the number was divided by the digit’s sum, the quotient would be 7
Answers
Answered by
0
let the first no is x and second no is (x-4)
so the no is 10x+(x-4)=11x-4
now when it is divided by digit sum means by (x+x-4)
then (11x-4)/(x+x-4)=7
or 11x-4=7(2x-4)
or 3x=24 or x=8
and another no is x-4=4
so the no will be 84
so the no is 10x+(x-4)=11x-4
now when it is divided by digit sum means by (x+x-4)
then (11x-4)/(x+x-4)=7
or 11x-4=7(2x-4)
or 3x=24 or x=8
and another no is x-4=4
so the no will be 84
Similar questions