3.
Write a program to calculate and print the circumference and area of a circle. write the code for the following programs using Script Mode
Answers
Answered by
3
r = prompt("enter radius")
circumference = Math.round(2*r*22/7)
area = Math.round(22/7 *r*r)
document.write("Circumference of circle is"+circumference)
document.write("Area of circle is"+area)
Answered by
1
Answer:
r = prompt("enter radius")
circumference = Math.round(2*r*22/7)
area = Math.round(22/7 *r*r)
document.write("Circumference of circle is"+circumference)
document.write("Area of circle is"+area)
Explanation:
Similar questions