+ 2
Code not working
This is a test on the java course, but i can't figure out what's wrong with this, It gives me an error on test case Number 3, which i can't see https://code.sololearn.com/cwOLO3WO0dIj/?ref=app
5 Answers
+ 1
Use
System.out.println(Math.PI*width*width);
Instead of
System.out.println(width*width*Math.PI);
+ 1
Jayakrishnađźđł thanks, this works, but why?
+ 1
There you get a slite rounding difference..
because of different types of data.
Check the code with width=11
+ 1
Thanks, now in understand
+ 1
You're welcome..