Computer Science, asked by Govil5687, 7 months ago

Accept n numbers and store them in an array . Overwrite the numbers by calculating and storing the square root of these numbers back in array

Answers

Answered by superhelpfullady
1

Answer:

Replace every array element by multiplication of previous and next

Given an array of integers, update every element with multiplication of previous and next elements with following exceptions.

a) First element is replaced by multiplication of first and second.

b) Last element is replaced by multiplication of last and second last.

Example:

Input: arr[] = {2, 3, 4, 5, 6} Output: arr[] = {6, 8, 15, 24, 30} // We get the above output using following // arr[] = {2*3, 2*4, 3*5, 4*6, 5*6}

l hope this helps

Answered by SUPERHEROBOB
0

Answer:

Abcdefghijklmnopqrstuvwxyz.

Similar questions