- Feb 9, 2005
- 25
- 0
- 0
I was wondering how I would go about changing this if - else statement into the equivalent switch statement:
if (i == 1 || i = 2)
output = "small";
else if (i == 3)
ouput = "medium";
else
output = "large";
if (i == 1 || i = 2)
output = "small";
else if (i == 3)
ouput = "medium";
else
output = "large";