हिंदी

Predict the output of the following: String n1 = "46", n2 = "64"; int total = Integer.parselnt(n1) + Integer.parselnt(n2); System.out.println("The sum of " + "46" + "and" + " 64" + "is" + total); - Computer Applications

Advertisements
Advertisements

प्रश्न

Predict the output of the following:

String n1 = "46", n2 = "64"; 
int total = Integer.parselnt(n1) + Integer.parselnt(n2); 
System.out.println("The sum of " + "46" + "and" + " 64" + "is" + total); 
एक पंक्ति में उत्तर

उत्तर

The sum of 46 and 64 is 110.

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 4: String Handling - EXERCISES [पृष्ठ २८७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 4 String Handling
EXERCISES | Q IV. 2. | पृष्ठ २८७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×