Java Script program to enter radius of a circle and find its diameter, circumference and area.

Java Script program to enter radius of a circle and find its diameter, circumference and area

java script programming

Java Script program to enter radius of a circle and find its diameter, circumference and area

In geometry, the area enclosed by a circle of radius r is πr2. Here the Greek letter π represents a constant, approximately equal to 3.14159, which is equal to the ratio of the circumference of any circle to its diameter.

The circumference of a circle is the linear distance around its edge.

				
					 <script>
        let a,d;
         r=parseInt(prompt("Enter Radius of a Circle"));
          a=(3.14*r*r)
         alert(a)
    
         d=(2*r)
         alert(d)

    </script>
				
			
Spread the love