Computer Science, asked by adityase6078caltech, 10 months ago

If int n[ ] ={1, 2, 3, 5, 7, 9, 13, 16}what are
the values of x and y? Where x= Math.
pow(n[4], n[2]) and y= Math. sqrt ( n[5] + n [7]
)​

Answers

Answered by itssudhanshukumar
22

Answer:

Your answer is: x=343.0 and y=5.0

Explanation:

n[4]=7

n[2]=3

Math.pow(n[4],n[2])=7^{3}=343.0   (∵Math.pow returns double value)

n[5]=9

n [7]=16

Math. sqrt ( n[5] + n [7]=\sqrt{9+16}=\sqrt{25}=5.0    (∵Math.sqrt returns double value)

Answered by thestylo
0

Answer:

what if x=n.lenght???

Similar questions