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.
- Declare a constant named
PIand set it safely to 3.14159. - Multiply
PIby the square of theradius. - Return the resulting total area number.
01EXAMPLE 1
Input
radius = 5Output
78.53975Explanation: 3.14159 * 5 * 5 = 78.53975
Constraints
- Use const for PI.
- Numerical tolerance is handled automatically.
FundamentalsMathConstants
JavaScriptSystem handles I/O — write your function only
Loading...
5 Hidden
Input Arguments
radius5
Expected Output
78.53975
Click RUN to test your solution