id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

konstans@stuy.edu > areaOfCircle
prev  |  next  |  chance

Write a function that returns the area of a circle that has a radius of length r. Please use the constant Math.PI for pi.


areaOfCircle(0) → 0.0
areaOfCircle(1.5) → 7.0685834705770345
areaOfCircle(1) → 3.141592653589793

...Save, Compile, Run (ctrl-enter)

public double areaOfCircle(double r){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Copyright Nick Parlante 2017 - privacy