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));
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)); थोडक्यात उत्तर
Advertisements
उत्तर
p = 6.0
q = 15.0
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
