Computer Science, asked by borkarsuhani4, 4 months ago

WAP to input a
to input a number of element in
an arrey and find the cube of each element
and store it to another arrey​

Answers

Answered by ramyadukuntla
1

Explanation:

Create a two-dimentional array of define its elements statically.

2. Run a for loop, the number of rows in this two-dimentional array times.

3. Inside this for loop, a function is called passing every row of the 2D array as a parameter(i.e passing 1D array).

4. Inside this function, value of every column of that row is multiplied by its own number, and stored in the same place, thus storing the square of the previously stored number.

5. Now print all the elements of the 2D array.

advertisement

please follow me friend and make me as brainliest answer

Similar questions