A two digit number can be obtained by using the expression (10a+b). , where a and b are the ten’s and unit’s digits respectively. The number after reversing the digits will be (10b+a).Write a program to input two digits of a number(a and b) and display the result when the sum of the number is divided by the difference between its digits. Sample input: 62 Sample output: 22
Answers
Answered by
1
Answer:
Let the tens place digit be x.
The units place digit is 3.
∴ Number = (10x + 3) ... (1)
Given:
7( x + 3) = (10 x + 3)
7 x + 21 = 10 x + 3
∴ 10 x - 7x = 21 - 3
⇒ 3 x = 18
or x = 6
Using x = 6 in equation (1):
The number is 63.
Explanation:
I hope it will help you
Similar questions
Math,
3 months ago
English,
3 months ago
Computer Science,
3 months ago
CBSE BOARD X,
7 months ago
Physics,
7 months ago
English,
11 months ago