about | help | code help+videos | done | prefs |
Given the radius, calculate and return the area of a circle rounded to 2 decimal places. The formula is A = πr^2. Approximate pi with the value 22.0/7.0 (22/7 would work in a Python environment). area(10) → 314.29 area(1) → 3.14 area(3) → 28.29 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200 Post-solution available
Copyright Nick Parlante 2017 - privacy