Find Key:
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 <= 9999
1000 <=
input2 <= 9999
1000 <= input3 <= 9999
You are expected to find the Key using the below formula -
Key = (Thousands digit of input1 x Hundreds digit of input2) - (Largest digit of
input3)
2
2
For e..g. if input1 = 3521, input2=2452, input3=1352, then Key = (3 x 4) - 5 = 7
Assuming that the 3 numbers are passed to the given function, Complete the
function to find and return the Key.
Answers
Answered by
1
Answer:
There are 9000 whole numbers from 1000 to 9999. Each is four digits long and zero is not the first digit, 9×10×10×10=9000
Similar questions
Science,
4 months ago
Science,
4 months ago
Social Sciences,
4 months ago
Biology,
9 months ago
Political Science,
1 year ago
Biology,
1 year ago