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

 

average3


Calculate the average of the three provided arguments. Remember that math operators that are applied to two integers will result in an integer. The result must be a double.


average3(0, 0, 0) → 0.0
average3(1, 3, 4) → 2.6666666666666665
average3(0, 2, 4) → 2.0

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

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