हिंदी

String sl= "45.50";String s2="54.50"; double d1=Double.parseDouble(s1); double d2=Doub1e.parseDouble(s2); int x=(int)(dl+d2) What is value of x? - Computer Applications

Advertisements
Advertisements

प्रश्न

String sl= "45.50";String s2="54.50";
double d1=Double.parseDouble(s1);
double d2=Doub1e.parseDouble(s2);
int x=(int)(d1+d2)

What is value of x?

टिप्पणी लिखिए

उत्तर

double d1=45.50
double d2=54.40
int x = (int) (45.5+54.5) = 100
value of x = 100
shaalaa.com
Types of Array
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
2023-2024 (February) Official
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×