मराठी

Use switch case statement for the given program snippet: if(a == 100) c = a * 2; if(a == 200) c = a * 4; if(a == 600) c = a * 10; - Computer Applications

Advertisements
Advertisements

प्रश्न

Use switch case statement for the given program snippet:

if(a == 100) 
c = a * 2; 
if(a == 200) 
c = a * 4; 
if(a == 600) 
c = a * 10; 
थोडक्यात उत्तर

उत्तर

switch(a) 
{ 
case 100: c = a * 2; 
break; 
case 200: c = a * 4; 
break; 
case 600: c = a * 10; 
} 
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 3. | पृष्ठ ९७
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×