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

 

doubleMath


Given two doubles, a and b, divide a by b, then multiply the result by a and return that value.


doubleMath(4.0, 2.0) → 8.0
doubleMath(12.0, 6.0) → 24.0
doubleMath(4.0, 3.0) → 5.333333333333333

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

public double doubleMath(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

Difficulty: 4

Copyright Nick Parlante 2017 - privacy