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);
/*
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
Post a Comment