मराठी

Find errors in the following snippet: int a = 5, b = 3; if (a <= b) System.out.println(a); else System.out.println(c = a + b); - Computer Applications

Advertisements
Advertisements

प्रश्न

Find errors in the following snippet:

int a = 5, b = 3; 
if (a <= b) 
   System.out.println(a); 
else 
   System.out.println(c = a + b); 
एका वाक्यात उत्तर

उत्तर

Assignment statement can't be used along with the print statement.

shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.08: Conditional Statements in Java - Review Insight [पृष्ठ ९७]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
पाठ 1.08 Conditional Statements in Java
Review Insight | Q 5. (a) | पृष्ठ ९७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×