InterviewSolution
Saved Bookmarks
| 1. |
Store 3 integers.Find the difference of thier products and sum. |
|
Answer» . three no's in AP be a−d,a,a+d Given, SUM of three NUMBERS =−3 Therefore, a−d+a+a+d=−3 ⇒3a=−3 ⇒a=−1 ALSO product of three numbers =8 Therefore, (a−d)a(a+d)=8 ⇒a(a 2 −d 2 )=8 ⇒(−1)(1−d 2 )=8 ⇒1−d 2 =−8 ⇒d 2 =9 ⇒d=3 and d=−3 If a=−1 and d=3 numbers are −4,−1,2. And if a=−1 and d=−3 numbers are 2,−1,−4.Explanation: |
|