Saved Bookmarks
| 1. |
Question Find Key: You are provided with 3 numbers : input1, input2 and input3. Each of these are four digit numbers within the range >=1000 and |
|
Answer» You are provided with 3 numbers : input1, input2 and INPUT3.Each of these are four digit numbers within the RANGE >=1000 and <=9999.i.e.1000 <= input1 <= 99991000 <= input2 <= 99991000 <= input3 <= 9999You are expected to find the Key using the below formula –Key = (HUNDREDS digit of input1 x Tens digit of input2) – (Largest digit of input3)For e..g. if input1 = 3521, input2=2452, input3=1352, then Key = (5 x 5) – 5 = 20Assuming that the 3 numbers are passed to the given FUNCTION, Complete the function to find and return the Key. |
|