JavaScript Challenge-12

 /*

      Write a program to find the Area of a Circle..

*/


function CircleArea(rad){

      let areaOfCircle = (Math.PI * Math.pow(rad, 2));

      console.log(areaOfCircle);

}

let radius = 7;

CircleArea(radius);

Comments

Popular posts from this blog

Average of All Indexes of Array

JavaScript Coding Challenge-8

Largest and Lowest Number of the Array using JavaScript