Computer Science, asked by student4427, 3 months ago

Write the output of the following code:

for(int i=0; i<=20;i++)

{ double arr[i]=Math.pow(i,3);}


Write the values of
(i) arr[0], (ii) arr[2], (iii) arr[9]

Class X,​

Answers

Answered by jamodeatul
2

Answer:

it will calculate power of given no. in array

i) 0

ii) 8

iii) 729

Similar questions