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;letr=readLine()// Print the area of the circle:constpis=Math.pow(r,2);letac=PI*pis;console.log(ac);// Print the perimeter of the circle:letpc=2*PI*r;console.log(pc);``
Day 1: Let and Const
You are viewing a single comment's thread. Return to all comments →