Question
The digits of a two-digit number βNβ are reversed to
form a new number βMβ. If M < N and N β M = 63, then which of the following maybe βNβ?Solution
ATQ; Let the original number = N = β10a + bβ So, the new number = M = β10b + aβ ATQ; N = M + 63 So, 10a + b = 10b β a + 63 Or, 9a β 9b = 63 Or, a β b = 7 So, possible pairs of βaβ and βbβ = (9, 2), (8, 1) So, possible values of βNβ = 92, 81 Alternate Solution From option βaβ: N = 29 So, M = 92 Since, M > N {not possible} N = 81 So, M = 18 Also, N β M = 81 β 18 = 63
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?