English

What Are the Final Values Stored in Variable X and Y Below ? Double a = – 6.35; Double B = 14.74; Double X = Math.Abs(Math.Ceil(A)); Double Y = Math.Rint (Math Max (A,B)); - Computer Applications

Advertisements
Advertisements

Question

What are the final values stored in variable x and y below ?
double a = – 6.35;
double b = 14.74;
double x = Math.abs(Math.ceil(a));
double y = Math.rint (Math max (a,b));

One Line Answer

Solution

The final values stored in:
x = 6 and y = 15

shaalaa.com
Variable Declarations
  Is there an error in this question or solution?
2013-2014 (March) Set 1
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×