Write the following code using switch case construct:-
int a,b=10;
if (a== 100)
{ b+= 5 ; System.out.print(b) ; }
else
{ b* = a ; System.out.print(b) ; }
Answers
Answered by
3
Answer:
int a=1,b=1,m=10,n=5; if((a==1)&&(b==0)) { System.out.println((m+n)); ... The line a=10,b=5 ,c=1,d=2; generates a compile time error.
Similar questions