Ad
Code
Diff
  • function CircleArea(r){
    return Number((Math.PI*Math.pow(r,2)).toFixed(2));
    }
    
    function CircleCir(r){
    return Number((Math.PI*r*2).toFixed(2));
    }
    • function CircleArea(r){
    • return Number((Math.PI*r*r).toFixed(2));
    • return Number((Math.PI*Math.pow(r,2)).toFixed(2));
    • }
    • function CircleCir(r){
    • return Number((Math.PI*r*2).toFixed(2));
    • }