Question
A three-digit number is such that the sum of its digits
is 11. If you reverse its digits, the new number is 297 more than the original number. Find the original number.Solution
ATQ, Let the number be 100a + 10b + c, where a is hundreds digit, c is units digit. Given: a + b + c = 11 β¦(1) Reversed number = 100c + 10b + a Given: (100c + 10b + a) β (100a + 10b + c) = 297 β 100c + 10b + a β 100a β 10b β c = 297 β 99c β 99a = 297 β 99(c β a) = 297 β c β a = 3 β¦(2) From (1): a + b + c = 11 From (2): c = a + 3 Substitute: a + b + (a + 3) = 11 2a + b + 3 = 11 2a + b = 8 β¦(3) Digits 0β9, and a β 0. Try integer values: From (2), c = a + 3 β€ 9 β a β€ 6 Test a = 2 β c = 5, then (3): 2Γ2 + b = 8 β b = 4 Number = 245 Check reversed 542 β 245 = 297 (correct) Sum of digits = 2 + 4 + 5 = 11 (correct). Answer: 245.
What does the "Model" represent in the MVC architecture?
Consider below arithmetic operation in python and predict the output
X=7.5
Y=2
print(X//Y)
Which scheduling policy may result in high waiting times for long-running jobs?
Which data analytics technique is suitable for handling missing data points in a dataset?
Which device operates at the Data Link Layer of the OSI model?
Β Which is the first process launched by the LINUX?
Which protocol is used for secure remote shell access and file transfers?
Which sorting algorithm is known for its best-case time complexity of O(n) when the input is already partially sorted?
C++ follows ___.
Which command is used to delete a file in a Unix/Linux system?