मराठी

What values will be stored in the variables p and q after executing the following code? double x = 5.9, y = 6.5; double p = (Math.rnin(Math.floor(x), y)); double q = (Math.max(Math.ceil(x), y)); - Computer Applications

Advertisements
Advertisements

प्रश्न

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

double x = 5.9, y = 6.5; 
double p = (Math.min(Math.floor(x), y)); 
double q = (Math.max(Math.ceil(x), y)); 
थोडक्यात उत्तर

उत्तर

p = 5.0

q = 6.5

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

Englishहिंदीमराठी


      Forgot password?
Use app×