English, asked by harshitha1560, 8 hours ago

2. Consider an array, A={2, 4, 61, 17, 8, 10, 13, 34, 67, 98 }. What will be the sum of the last and second
after right shift has been performed thrice on the array?
7040
A. O 18
a
B.O 23
C. 47
D. O 25​

Answers

Answered by mehulmohakud09
0

Answer:

Input: array = {10, 2, 3, 4, 5, 9, 7, 8}

X = 23

Output: 3 5 7 8

Sum of output is equal to 23,

i.e. 3 + 5 + 7 + 8 = 23.

Input: array = {1, 2, 3, 4, 5, 9, 7, 8}

X = 16

Output: 1 3 5 7

Sum of output is equal to 16,

i.e. 1 + 3 + 5 + 7 = 16.

Similar questions