मराठी

What values will be stored in the variables p and q after executing the following code? double a = -6.35; double b = 14.74; double p = Math.abs(Math.ceil(a)); double q = Math.rint(Math.max(a, b)); - Computer Applications

Advertisements
Advertisements

प्रश्न

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

double a = −6.35; double b = 14.74; 
double p = Math.abs(Math.ceil(a)); 
double q = Math.rint(Math.max(a, b)); 
थोडक्यात उत्तर

उत्तर

p = 6.0

q = 15.0

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. (a) | पृष्ठ ७९
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×