fork download
  1. function calcArea(diameter){
  2. let raduis= diameter/2;
  3. console.log(Math.pow(raduis,2)*Math.PI);
  4. }
  5. calcArea(5);// your code goes here
Success #stdin #stdout 0.05s 16736KB
stdin
Standard input is empty
stdout
19.634954084936208