Computer Science, asked by ayush3027, 6 months ago

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 simranpreetbrar590
1

Answer:

int i,sum=0;

for(i=0;i<10;i+=2)

{ sum +=i;

}

Similar questions