You are viewing a single comment's thread. Return to all comments →
const PI = Math.PI; let r = parseFloat(readLine()); var area = r * r * PI; var perimeter = 2 * PI * r; console.log(area); console.log(perimeter);
Seems like cookies are disabled on this browser, please enable them to open this website
Day 1: Let and Const
You are viewing a single comment's thread. Return to all comments →
const PI = Math.PI; let r = parseFloat(readLine()); var area = r * r * PI; var perimeter = 2 * PI * r; console.log(area); console.log(perimeter);