Company: Deloitte Analyst role Off-campus_9may
Difficulty: medium
Write a program that accepts two integers, A and X, as inputs and calculate B, if X is equal to (A + B) / 2. Read the input f rom STDIN and print the output to STDOUT. Do not write arb itrary message s while reading the input or while printing as these will affect the standard output. Constraints: i) (A+B) / 2 sho uld perform integer division Input format: The only line of input should consist of two integers A and X. Output format: The only line of output should display the value of B. Sample Input: 3 19 Sample Output: 35 Explanations: Based on th e gi ven inputs B value is 35