Problem Statement - Using Math.pow and indexOf
What is the value stored in variable res given below:
double res = Math.pow(“345”.indexOf(‘5’), 3);
Solution
sunmitra| Created: 22-Mar-2018 | Updated: 16-Apr-2019|ICSE2015
What is the value stored in variable res given below:
double res = Math.pow(“345”.indexOf(‘5’), 3);
sunmitra| Created: 22-Mar-2018 | Updated: 16-Apr-2019|ICSE2015