We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functionmain(){// Write your code here. Read input using 'readLine()' and print output using 'console.log()'.constPI=Math.PI;letradius=readLine();letarea=PI*(Math.pow(radius,2));letperimeter=2*PI*radius;// Print the area of the circle:console.log(area);// Print the perimeter of the circle:console.log(perimeter);try{
Day 1: Let and Const
You are viewing a single comment's thread. Return to all comments →
This works lol