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

 

tmhscs@gmail.com fundamentals > fund_smallerOfTwoDoubles
prev  |  next  |  chance

Given two doubles, return the smaller value between the two.

Try using the method call Math.min for this one!


fund_smallerOfTwoDoubles(1.0, 2.0) → 1.0
fund_smallerOfTwoDoubles(2.0, 1.0) → 1.0
fund_smallerOfTwoDoubles(3.0, -3.0) → -3.0

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

public double fund_smallerOfTwoDoubles(double a, double b) { }

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