English

What values will be stored in the variables p and q after executing the following code? int p = Math.abs(Math.min(−61, −79)); double q = Math.cbrt(4.913); - Computer Applications

Advertisements
Advertisements

Question

What values will be stored in the variables p and q after executing the following code?

int p = Math.abs(Math.min(−61, −79)); 
double q = Math.cbrt(4.913);
Answer in Brief

Solution

p = 79

q = 1.7

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.07: Mathematical Library Methods - Review Insight [Page 79]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.07 Mathematical Library Methods
Review Insight | Q 1. (c) | Page 79
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×