Write the equivalent switch statement for the following:
if(a= =1)
x++;
else if(a= =2)
y++;
else if(a= =3)
z++;
else
w++;
Answers
Answered by
1
Answer:
int i,sum=0;
for(i=0;i<10;i+=2)
{ sum +=i;
}
Similar questions