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

 

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

Given three doubles, return their average. Averaging them means adding them all together to get the sum and then dividing by how many numbers there are.


fund_averageThree(1.0, 2.0, 3.0) → 2.0
fund_averageThree(1.0, 2.0, 2.1) → 1.7
fund_averageThree(2.0, 3.0, 4.0) → 3.0

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

public double fund_averageThree(double a, double b, double 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

Post-solution available

Copyright Nick Parlante 2017 - privacy