0

How do I use switch case to find the areas of a circle, rectangle, and triangle

using switch cases

7th Mar 2017, 7:13 AM
silence
2 Answers
+ 2
switch (shape){ case "circle": //... case "triangle": //.... case "rectangle": //... default: //... break; } here shape would be string value
10th Mar 2017, 1:32 AM
venk120 Soft
venk120 Soft - avatar
0
thnx
10th Mar 2017, 4:13 AM
silence