English

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?
Chapter 4: String Handling - Review Insight [Page 285]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 4 String Handling
Review Insight | Q 11. | Page 285
Advertisements
Share
Notifications



      Forgot password?
Use app×