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

 

fund_squareRoot


Given a decimal number, return the square root of it. You can call the method Math.sqrt(___) and send it a number. It will return the square root of the input as a double!


fund_squareRoot(1) → 1.0
fund_squareRoot(2) → 1.4142135623730951
fund_squareRoot(3) → 1.7320508075688772

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

public double fund_squareRoot(double x) { }

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

Post-solution available

Copyright Nick Parlante 2017 - privacy