English

If int n[] = {l, 2, 3, 5, 7, 9, 13, 16}, what are the values of x and y? x = Math.pow(n[4], n[2]);y = Math.sqrt(n[S] + n[7]); - Computer Applications

Advertisements
Advertisements

Question

If int n[] = {l, 2, 3, 5, 7, 9, 13, 16}, what are the values of x and y? 

x = Math.pow(n[4], n[2]);
y = Math.sqrt(n[S] + n[7]); 

Answer in Brief

Solution

The value of x = 343

The value of y = 5

shaalaa.com
  Is there an error in this question or solution?
Chapter 3: Arrays (Single Dimensional and Double Dimensional) - Review Insight [Page 236]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 3 Arrays (Single Dimensional and Double Dimensional)
Review Insight | Q 9. | Page 236
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×