हिंदी

What values will be stored in the variables p and q after executing the following code? double a = −99.51, b = −56.25; double p = Math.abs(Math.floor(a)); double q = Math.sqrt(Math.abs(b)); - Computer Applications

Advertisements
Advertisements

प्रश्न

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

double a = −99.51, b = −56.25; 
double p = Math.abs(Math.floor(a)); 
double q = Math.sqrt(Math.abs(b)); 
संक्षेप में उत्तर

उत्तर

p = 100.0

q = 56.25

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.07: Mathematical Library Methods - Review Insight [पृष्ठ ७९]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 1.07 Mathematical Library Methods
Review Insight | Q 1. (d) | पृष्ठ ७९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×