Question
A two-digit number is such that the sum of its digits is
12. If the number formed by reversing its digits is 18 less than the original number, find the original number.Solution
Let the original number be 10x + y, where x is the tens digit and y is the units digit. Given: x + y = 12 and 10y + x = (10x + y) - 18. Simplify the second condition: 10y + x = 10x + y - 18 9y - 9x = -18 y - x = -2. Now solve the two equations: x + y = 12 y - x = -2. Add the equations: 2y = 10 β y = 5. Substitute y = 5 into x + y = 12: x + 5 = 12 β x = 7. The original number is 10x + y = 10(7) + 5 = 75. Correct answer: d. 75
How do you access the value of a variable named `USERNAME` in a shell script?
Slowly Changing Dimension (SCD) is used to:
In shell scripting, how do you assign the string "Hello World" to a variable named `MESSAGE`?
What is the exit status code of a successfully executed command in Linux shell?
Which command is used to display the current working directory in a Unix-like operating system?
How can you make a shell script executable?
Which operator is used to append output to a file?
OLAP is primarily used for:
What does the command `chmod 755 myscript.sh` set as permissions for `myscript.sh`?
Which command is used to display the number of lines in a file?