Types of polygons

  • 14
  • Locked
The Solution class has a getShapeNameByCornerCount(int) method that returns the name of a polygon depending on the number of its corners. Your task is to rewrite the method using only a switch statement.
You can't complete this task, because you're not signed in.
Comments (2)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Level 29 , United States of America, USA
27 February, 04:14
Broken task
Nicolae Span
Level 16 , Romania
12 January, 09:08
Can someone please explain to me why using break in this problem is incorrect? thank you