0
How do I use switch case to find the areas of a circle, rectangle, and triangle
using switch cases
2 Réponses
+ 2
switch (shape){
case "circle":
//...
case "triangle":
//....
case "rectangle":
//...
default:
//...
break;
}
here shape would be string value
0
thnx