1.

Q-2. write a pair of integers, whose difference gives: i) a negative integer ii) -9 iii) a positive integer iv) 2 v) zero vi) an integer smaller than both integers vii) an integer greater than only one of the integer​

Answer»

Answer:

INPUT : N = 2, K = 3

Output : 2

Explanation: [1, 2] and [2, 1] are the only arrays of size 2 whose SUM is 3.

Input : n = 3, k = 7

Output : 15



Discussion

No Comment Found