What is wrong with my code for the practice project shapes of java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is wrong with my code for the practice project shapes of java

I tried solving the java project shapes but my code only works for 4 of the test cases hidden case 3 it fails can anyone help me with why it is failing https://code.sololearn.com/cOy99z9wUnLI/?ref=app

24th Jun 2021, 4:40 AM
ch fi
ch fi - avatar
2 Answers
0
I tried your solution, not that I understand why it would work it passes hidden condition 3 now, but fails at 5.
24th Jun 2021, 11:24 AM
ch fi
ch fi - avatar
- 1
ch fi Change this this.width * this.width * Math.PI To this Math.PI * this.width * this.width
24th Jun 2021, 5:01 AM
A͢J
A͢J - avatar