Circle Area

EasyAcc. 95.4%
+20 XP 8

Plot Measurements

Measuring land plots requires accurate geometry. When making calculations for circular lands, passing an exact pie value is very important to get correct rates.

The formula for the area of a circle is Area = PI * radius².

The Assignment

Your duty is to accurately find the area.

  1. Declare a constant named PI and set it safely to 3.14159.
  2. Multiply PI by the square of the radius.
  3. Return the resulting total area number.

01EXAMPLE 1

Inputradius = 5
Output78.53975

Explanation: 3.14159 * 5 * 5 = 78.53975

Constraints

  • Use const for PI.
  • Numerical tolerance is handled automatically.
FundamentalsMathConstants
JavaScript
Loading...
5 Hidden

Input Arguments

radius5

Expected Output

78.53975

Click RUN to test your solution