Question
The LCM and HCF of two numbers is 192 and 16 respectively.
If the sum of the number is 112, then find the difference between the numbers.Solution
We know that, LCM X HCF = product of the numbers
Let the numbers are 'a' and 'b'.
So, a X b = 192 X 16
So, ab = 3072........(I)
Given, a + b = 112
From equation (I) ,
Or, 'a' = (3072/b)
So, (3072/b) + b = 112
So, 3072 + b 2 Â = 112b
Or, b 2 Â - 112b + 3072 = 0
Or, b 2 Â - 64b - 48b + 3072 = 0
So, 'b' = 48 or 64
When, 'b' = 48
So, 'a' = (3072/48) = 64
When, 'b' = 64
So, 'a' = (3072/64) = 48
Therefore, required difference = 64 - 48 = 16
What is the primary purpose of a `SEQUENCE` in SQL?
In PL/SQL, what type of parameter allows a procedure to both receive a value from the calling environment and return a modified value back to it?
Which SQL clause is used for filtering rows?
Which SQL command is used to modify existing records in a table?
Which type of trigger fires once for each row affected by the triggering DML statement?
Which operator is used for pattern matching in SQL?
When does an implicit cursor get automatically declared and managed by PL/SQL?
Which SQL command is used to remove a table completely?
Which join returns rows from the left table even when there is no matching row in the right table, filling with NULLs for the right side?
What is an SQL `VIEW`?