What is the value stored in variable res given below? double res = Math.pow (“345”.indexOf(‘5’), 3)
Advertisements
Question
What is the value stored in variable res given below?
double res = Math.pow (“345”.indexOf(‘5’), 3);
One Line Answer
Advertisements
Solution
res = 8.0
shaalaa.com
Is there an error in this question or solution?
