for (i=1;i<3;i++) {
s = "";
switch x {
case 1: s = "Do";
case 2: s += " your own";
case 3: s += " work!";
}
}
modify the syntax for the language of your choice.
Write a program using for loop along with switch case
1 answer