मराठी

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×