How do I use switch case to find the areas of a circle, rectangle, and triangle | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
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 ответов
+ 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