Computer Science, asked by sudhanshu6521, 6 months ago

what is the value stored in variable res double res =Math.pow ("345",indexOf('5'),3);

A  8.0B  7.0C  6.0D  5.0​

Answers

Answered by legionbhaiya
3

Answer:

A 8.0

Explanation:

index of 5 in 345 is 2 .

pow(2,3) == 8.0

Answered by amansarrafas24payxgs
1

Answer:

(A) 8.0

Explanation:

res = Math pow("345",indexOf('5'),3);

res = Math.pow(2,3);

res = 8.0

Similar questions