मराठी

Rewrite the following code using single if statement. if(code=='g') System.out.println("GREEN"); else if(code=='G') System.out.println("GREEN"); - Computer Applications

Advertisements
Advertisements

प्रश्न

Rewrite the following code using single if statement.

if(code=='g')
System.out.println("GREEN");
else if(code=='G')
System.out.println("GREEN");
एका वाक्यात उत्तर

उत्तर

if(code=='g' || code=='G')
System.out.println("GREEN");
shaalaa.com
Introduction of Conditional Statements in Java
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (April) Specimen Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×