हिंदी

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×