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

 

quadraticForm


Create quadraticForm(int a,int b,int c) that will return the larger solution to the quadratic formula


quadraticForm(1, 0, -1) → 1.0
quadraticForm(1, -3, 2) → 2.0
quadraticForm(2, 0, -1) → 0.7071067811865476

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

public double quadraticForm(int a, int b, int c) { }

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